MATLAB Creating Graphical User Interfaces

(Barry) #1

13 Manage Callback Execution


Here is the command that creates the Mesh Plot (cancel) push button. Notice that the
BusyAction property is set to 'cancel'.

hmesh_cancel = uicontrol(h_panel2,'Style','pushbutton',...
'Position',[30,130,110,30],...
'String','Mesh Plot (cancel)',...
'BusyAction','cancel',...
'TooltipString','BusyAction = cancel',...
'Callback',@mesh_cancel);

See Also
drawnow | timer | uiwait | waitfor

Related Examples



  • “Automatically Refresh Plot in a GUIDE UI”

  • “Use a MATLAB Timer Object”

Free download pdf