28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Figure</strong> <strong>Properties</strong><br />

and stays above all other windows until it becomes invisible, or is returned to<br />

WindowStyle normal, or is deleted. At that time, focus reverts to the window<br />

that last had focus.<br />

<strong>Figure</strong>s with WindowStyle modal and Visible off do not behave modally until<br />

they are made visible, so it is acceptable to hide a modal window instead of<br />

destroying it when you want to reuse it.<br />

You can change the WindowStyle of a figure at any time, including when the<br />

figure is visible and contains children. However, on some systems this may<br />

cause the figure to flash or disappear and reappear, depending on the<br />

windowing system’s implementation of normal and modal windows. For best<br />

visual results, you should set WindowStyle at creation time or when the figure<br />

is invisible.<br />

Modal figures do not display uimenu children or built-in menus, but it is not an<br />

error to create uimenus in a modal figure or to change WindowStyle to modal<br />

on a figure with uimenu children. The uimenu objects exist and their handles<br />

are retained by the figure. If you reset the figure’s WindowStyle to normal, the<br />

uimenus are displayed.<br />

Use modal figures to create dialog boxes that force the user to respond without<br />

being able to interact with other windows. Typing Control C at the MATLAB<br />

prompt causes all figures with WindowStyle modal to revert to WindowStyle<br />

normal, allowing you to type at the command line.<br />

Docked WindowStyle<br />

When WindowStyle is set to docked, the figure is docked in the desktop or a<br />

document window. When you issue the following command,<br />

set(figure_handle,'WindowStyle','docked')<br />

MATLAB docks the figure identified by figure_handle and sets the<br />

DockControls property to on, if it was off.<br />

Note that if WindowStyle is docked, you cannot set the DockControls property<br />

to off.<br />

2-801

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

Saved successfully!

Ooh no, something went wrong!