comparison scripts/plot/uimenu.m @ 11587:c792872f8942

all script files: untabify and strip trailing whitespace
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:35:29 -0500
parents 3c6e8aaa9555
children 5ec6aa05638d
comparison
equal deleted inserted replaced
11586:12df7854fa7c 11587:c792872f8942
20 ## @deftypefn {Function File} {} uimenu (@var{property}, @var{value}, @dots{}) 20 ## @deftypefn {Function File} {} uimenu (@var{property}, @var{value}, @dots{})
21 ## @deftypefnx {Function File} {} uimenu (@var{h}, @var{property}, @var{value}, @dots{}) 21 ## @deftypefnx {Function File} {} uimenu (@var{h}, @var{property}, @var{value}, @dots{})
22 ## Create an uimenu object and return a handle to it. If @var{h} is ommited 22 ## Create an uimenu object and return a handle to it. If @var{h} is ommited
23 ## then a top level menu entry for the current figure is created. If @var{h} 23 ## then a top level menu entry for the current figure is created. If @var{h}
24 ## is given then a submenu relative to @var{h} is created. 24 ## is given then a submenu relative to @var{h} is created.
25 ## 25 ##
26 ## Uimenu objects have the following specific properties: 26 ## Uimenu objects have the following specific properties:
27 ## 27 ##
28 ## @table @code 28 ## @table @code
29 ## @item "accelerator" 29 ## @item "accelerator"
30 ## A string containg the key combination together with CTRL to execute this 30 ## A string containg the key combination together with CTRL to execute this
31 ## menu entry (e.g., "x" for CTRL+x). 31 ## menu entry (e.g., "x" for CTRL+x).
32 ## 32 ##
33 ## @item "callback" 33 ## @item "callback"
34 ## Is the function called when this menu entry is executed. It can be either a 34 ## Is the function called when this menu entry is executed. It can be either a
35 ## function string (e.g., "myfun"), a function handle (e.g., @@myfun) or a cell 35 ## function string (e.g., "myfun"), a function handle (e.g., @@myfun) or a cell
36 ## array containing the function handle and arguments for the callback 36 ## array containing the function handle and arguments for the callback
37 ## function (e.g., @{@@myfun, arg1, arg2@}). 37 ## function (e.g., @{@@myfun, arg1, arg2@}).
38 ## 38 ##
39 ## @item "checked" 39 ## @item "checked"
40 ## Can be set "on" or "off". Sets a mark at this menu entry. 40 ## Can be set "on" or "off". Sets a mark at this menu entry.
41 ## 41 ##
42 ## @item "enable" 42 ## @item "enable"
43 ## Can be set "on" or "off". If disabled the menu entry cannot be selected 43 ## Can be set "on" or "off". If disabled the menu entry cannot be selected
44 ## and it is grayed out. 44 ## and it is grayed out.
45 ## 45 ##
46 ## @item "foregroundcolor" 46 ## @item "foregroundcolor"
47 ## A color value setting the text color for this menu entry. 47 ## A color value setting the text color for this menu entry.
48 ## 48 ##
49 ## @item "label" 49 ## @item "label"
50 ## A string containing the label for this menu entry. A "&"-symbol can be 50 ## A string containing the label for this menu entry. A "&"-symbol can be