12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

uicontrol PropertiesUicontrolProperties2uicontrol PropertiesYou can set default uicontrol properties on the root and figure levels:set(0,'DefaultUicontrolProperty',PropertyValue...)set(gcf,'DefaultUicontrolProperty',PropertyValue...)where Property is the name of the uicontrol property whose default value youwant to set and PropertyValue is the value you are specifying. Use set and getto access uicontrol properties.Curly braces { } enclose the default value.BackgroundColorColorSpecObject background color. The color used to fill the uicontrol rectangle. Specifya color using a three-element RGB vector or one of <strong>MATLAB</strong>’s predefinednames. The default color is determined by system settings. See ColorSpec formore information on specifying color.BusyActioncancel | {queue}Callback routine interruption. If a callback is executing and the user triggersan event (such as a mouse click) on an object for which a callback is defined,that callback attempts to interrupt the first callback. The first callback can beinterrupted only at a drawnow, figure, getframe, pause, or waitfor command;if the callback does not contain any of these commands, it cannot beinterrupted.If the Interruptible property of the object whose callback is executing is off(the default value is on), the callback cannot be interrupted (except by certaincallbacks; see the note below). The BusyAction property of the object whosecallback is waiting to execute determines what happens to the callback:• If the value is queue, the callback is added to the event queue and executesafter the first callback finishes execution.• If the value is cancel, the event is discarded and the callback is not executed.Note If the interrupting callback is a DeleteFcn or CreateFcn callback or afigure’s CloseRequest or ResizeFcn callback, it interrupts an executingcallback regardless of the value of that object’s Interruptible property. The2-542

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!