1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE>December 1995</DATE>
8
<SHORT_DESCRIPTION name="setmenu"> interactive button or menu activation</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>setmenu(button [,nsub]) </CALLING_SEQUENCE_ITEM>
11
<CALLING_SEQUENCE_ITEM>setmenu(gwin,button [,nsub]) </CALLING_SEQUENCE_ITEM>
16
<PARAM_NAME>button</PARAM_NAME>
18
<SP>: a character string. The button name</SP>
22
<PARAM_NAME>gwin</PARAM_NAME>
24
<SP>: integer. The number of graphic window where the button is installed</SP>
28
<PARAM_NAME>nsub</PARAM_NAME>
30
<SP>: integer. The number of submenu to de-activate (if any). If button has no sub-menu, <VERB>nsub</VERB> is ignored</SP>
37
The function allows the user to make active buttons or menus created by
38
<VERB>addmenu</VERB> in the main or graphics windows command panels.</P>
42
addmenu('foo') //New button made in main scilab window
43
unsetmenu('foo') //button foo cannot be activated (grey string)
44
setmenu('foo') //button foo can be activated (black string)
52
<LINK>unsetmenu</LINK>