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',...
'Tooltip','BusyAction = cancel',...
'Callback',@mesh_cancel);
See Also
drawnow | timer | uiwait | waitfor
Related Examples
- “Write Callbacks for Apps Created Programmatically” on page 10-5
- “Automatically Refresh Plot in a GUIDE App” on page 8-23
- “Schedule Command Execution Using Timer”
- “Finding Code Bottlenecks”
12 Manage Callback Execution