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.

uicontrolPurpose2uicontrolCreate user interface control objectSyntaxDescriptionhandle = uicontrol(parent)handle = uicontrol(...,'PropertyName',PropertyValue,...)uicontrol creates uicontrol graphics objects (user interface controls). Youimplement graphical user interfaces using uicontrols. When selected, mostuicontrol objects perform a predefined action. <strong>MATLAB</strong> supports numerousstyles of uicontrols, each suited for a different purpose:• Check boxes• Editable text• Frames• List boxes• Pop-up menus• Push buttons• Radio buttons• Sliders• Static text• Toggle buttonsCheck boxes generate an action when clicked on. These devices are useful whenproviding the user with a number of independent choices. To activate a checkbox, click the mouse button on the object. The state of the device is indicated onthe display.Editable text boxes are fields that enable users to enter or modify text values.Use editable text when you want text as input.On Microsoft Windows systems, if an editable text box has focus, clicking on themenu bar does not cause the editable text callback routine to execute. However,it does cause execution on UNIX systems. Therefore, after clicking on the menubar, the statementget(edit_handle,'String')does not return the current contents of the edit box on Microsoft Windowssystems because <strong>MATLAB</strong> must execute the callback routine to update the2-534

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

Saved successfully!

Ooh no, something went wrong!