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:

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:

  1. First the figure WindowButtonDownFcn callback executes
  2. Then the control's 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