| Creating Graphical User Interfaces | ![]() |
Enabling or Disabling Controls
You can control whether a control responds to mouse button clicks by setting the Enable property. Controls have three states:
string property) is grayed out.
When a control is disabled, clicking on it with the left mouse button does not execute its callback routine. However, the left-click causes two other callback routines to execute:
WindowButtonDownFcn callback executes
ButtonDownFcn callback executes
A right mouse button click on a disabled control posts a context menu, if one is defined for that control. See the Enable property description for more details.
| Pop-Up Menus | Axes | ![]() |