Code covered by the BSD License  

Highlights from
CLICKUICONTROL

4.0

4.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 3.83 KB File ID: #8926

CLICKUICONTROL

by Jiro Doke

 

02 Nov 2005 (Updated 29 Dec 2009)

Emulates clicking on a UIcontrol object.

| Watch this File

File Information
Description

CLICKUICONTROL(H) behaves as if clicking on a UIControl object. The object can be one of the following: pushbutton, checkbox, radiobutton, togglebutton, slider, listbox, popupmenu. The Value property of the object will be appropriately set, and the object's Callback is called (ButtonDownFcn will be called if the object's Enable property is set to OFF or INACTIVE). It will work with callbacks defined as strings or function handles. The UICONTROL will not be brought to focus.

CLICKUICONTROL(H, 'focus') brings focus to the object. This is useful for bringing focus to an EDIT box. Default is 'nofocus'.

CLICKUICONTROL(H, OPT) or CLICKUICONTROL(H, 'focus', OPT). Some objects accept a additional argument OPT. Acceptable arguments are dependent on the style of UIControl object.

 SLIDER:
  '-' : Click on the decreasing arrow.
  '+' : Click on the increasing arrow.
  '--' : Click on the decreasing slider trough.
  '++' : Click on the increasing slider trough.
  '.' : Click without change of value.
 
 LISTBOX:
  'top' : Select the top-most element.
  'end' : Select the last element.
  '+' : Select the next element.
  '-' : Select the previous element.
  '.' : Select the current element.
  N : Select the N-th element.
          Can also be an array if multi
          selection is permitted.
 
 POPUPMENU:
  'top' : Select the top-most element.
  'end' : Select the last element.
  '+' : Select the next element.
  '-' : Select the previous element.
  '.' : Select the current element.
  N : Select the N-th element.

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
annotation, buttondownfcn(2), callback, command window, display, gui, mouse click, uicontrol
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
20 Nov 2007 Nam Tran  
Updates
29 Dec 2009

Fix bug so that it works with UICONTROLs in panels. Also added ability to set focus. Updated license.

Contact us