Creating Graphical User Interfaces | ![]() ![]() |
Using the System Background Colors
The color used for GUI components varies on different computer systems. This option enables you to make the figure background color the same as the default uicontrol background color, which is system dependent.
If you select Use system color scheme for background (the default), GUIDE changes the figure background color to match the color of the GUI components.
The following figures illustrate the results with (right) and without (left) system color matching.
Code in the Application M-File
GUIDE implements this feature by generating code in the application M-file that sets the figure background color to the default uicontrol background color, which is system dependent.
% Use system color scheme for figure:
set(fig,'Color',get(0,'DefaultUicontrolBackgroundColor'));
Note Ensure that you have only one occurrence of this statement in your application M-file, including in commented lines. |
![]() | Application Allows Only One Instance to Run | Waiting for User Input | ![]() |