<<

Contents

Search

>>

 

POPUPACTIVATE

 

 

Function

 

 

Syntax:

POPUPACTIVATE(<Menu Item>)

 

<Menu Item> = <STRING-EXPRESSION>

 

Meaning:

With POPUPACTIVATE menu items or menu branches, which have been temporarily locked with POPUPDEACTIVATE, can be activated again. <Menu item> = "" includes the whole popup menu. POPUPACTIVATE returns the result 0 if the menu item could be activated, otherwise the error number 6001: menu item not found.

 

If an asterix * is inserted before the menu item, a checkbox is created in the menu.

 

Note: POPUPACTIVATE("*...") must be executed before the instruction START_POPUPMENU in order to create the checkbox in the menu.  

 

Note: In the menu macro the variable EBUS_MENU$ contains an asterix as first character if a menu item has been selected with which the checkbox is set.

 

Parameter:

Menu Item

Number of Menu Item

 

Sample:

H% = ADD_POPUPMENU ("1","&Print;&Bell",MEN.MACRO)

H% = POPUPACTIVATE("*1.1") /* Create checkbox "Print", checkbox is selected

H% = POPUPACTIVATE("*1.2") /* Create checkbox "Bell", checkbox is selected

H% = START_POPUPMENU(2,5)

 

See also:

POPUPDEACTIVATE

ADD_POPUPMENU

START_POPUPMENU

ACTIVATE