Black background when resizing GUI - matlab

While executing a Matlab GUI (designed with GUIDE), if I resize the window and some part goes out of the screen limits, it gets black, except buttons, edit boxes, etc that remain right. So I am looking for any function that refresh the GUI. Could you help me with that?
I would like to include that "refreshing function" in the ResizeFcn.
Thanks.

Related

How to modify the button's behavior on mouse over event in Graphical Installer for NSIS?

I'm new to NSIS. When I truned into Graphical Installer, I found the button's reaction on mouse over event is a litter bit different from Win10's default, which supposed to turn on highlight when mouse moves in (otherwise, turn off). But buttons under Graphical Installer look dummy when mouse moves over, and highlight only when mouse clicks, just like older windows versions.
How can I modify the button's behavior to match the effect in Win10?
Buttons in Graphical Installer for NSIS are defined like this:
It is a bitmap (.bmp) file with 4 button states inside of it: normal, focused pressed and disabled.
Size (of each state) is 83 (width) x 26 (height) pixels, together 83 x 104 pixels.
I assume you are talking about Focused state - you need to make the picture for this state "highlighted" - e.g. in Gimp use a function to add brightness to this area of bitmap (see the provided buttons in examples folder).
Focused state is applied when button has focus (changed e.g. by pressing the Tab button) to signalize "active" button that can be triggered by pressing the Enter key.
So this works a little different, but we will consider this "highlight" feature.
See http://graphical-installer.com/files/manuals/nsis/source/html/intro%20-%20project-graphics.html for more info
P.S. I am developer of this tool, feel free to ask any question, also asking here on SO is fine.

Any way to increase figure size past screen size in MATLAB GUIDE?

I am working with a GUI in MATLAB created using GUIDE. There are quite a lot of components in it so it is not currently feasible to recreate it outside of GUIDE. I have been trying to implement Tabs into the GUI to display different Panels, each with their own set of components. I am doing this by adjusting the Visibility of each Panel to ON/OFF depending on which "tab" Button you click.
Now, when in the GUIDE editor, I would like to increase the figure size over the screen-size limit to allow me to easily work with each "Tab" Panel. When running the GUI, you would only ever see a single Panel, while all the other tabs will have their Visibility set to OFF.
Is there any way to have a larger figure size within the GUIDE editor itself?

How to make a figure invisible the first time I open in in Matlab GUIDE

I'm making a GUI using matlab GUIDE. Since GUIDE doesn't support tabs, I have a pop down menu where the user selects different options. Depending on the selected options, certain buttons appear and disappear, this is easily handled by turning the handle visibility on/off.
However, the first time I run the GUI, i can see all my buttons, even though their default handle visibility is off. The moment I select something from the pop down menu, everything is fine.
How do I make a figure invisible for the very first time the GUI is opened?
Thanks!
Try the drawnow command at the end of the initialization code of your GUI (see doc here). It should force the update of the GUI and hopefully set the visibility of your objects correctly.

How to dock multiple plots/images in main figure window?

I have a GUI that shells a program generating a plot as output.
Each time the user presses 'OK', a new plot is made, appearing in a new window.
What I'd like to have is the following:
User starts GUI, enters required input parameters and presses 'OK'.
A 'main' figure window opens and a plot appears as a docked figure in the main window.
User changes the settings and confirms with 'OK'.
Another docked figure showing a new plot is added to the main window.
etc.
For me it's not clear how to:
Define the main/parent figure window that will hold the generated children plot figures.
Add these plot figures to the main figure window.
If I start with:
set(0,'DefaultFigureWindowStyle','docked')
is it possible then to further customize some properties of the main window?
I think of title, position, no menubar, ...
Can anyone help me with some hints?
Thanks!
Notes:
It seems that it's not possible to dock figures in a predefined figure window; you can only dock to the desktop. That's what I understand until now since searching the internet.
Yes, you surely can customize the figure window.
You can set the title of the figure window using 'Name' property in the following way:
set(gcf,'Name','Title');
Similarly, you can use 'Menubar' property and 'Toolbar' property to control the display of the toolbar.
Also, you can set the position using 'Position' property.
Refer to the following link for all the figure properties you can set:
http://www.mathworks.com/help/techdoc/ref/figure_props.html
Hope it helps...all the best!!
Yes, Matlab does not allow to dock figures into several different windows but there is a tool on Matlab file exchange which provides that functionality:
http://www.mathworks.com/matlabcentral/fileexchange/16650

How to Remove Background Color (PowerShell)

I was playing around with PowerShell today and added a background color to all text ...now I want it gone!
Anyone know how to do that, as a side note I was trying to change the color of the whole blank area that fills the application (formerly known as the background ...good job Microsoft) so if you know how to do that please do share.
Click on the icon in the upper left, select Properties, go to the Colors tab.