Software
Customisation Guide
Menus
:
Defining a Bar Menu Gadget
: Popup Menus
Popup Menus
The user can use any of their defined menus as popup menus for most interactive gadgets and for the form background as long as they have specified them as belonging to the popup menu system.
When the cursor is moved over it with the popup mouse button pressed down, and then released, the menu will be displayed, and the user can select from it in the normal way.
A popup is added to a gadget or form using its
Setpopup()
method, with the popup menu as the argument to the method. Note that the menu pop1 must exist when the
Setpopup()
method is executed.
For example:
layout form !!MyForm resizable
menu .pop1 popup
!this.pop1.add( 'MENU', 'Options', 'optionmenu' )
!this.pop1.add( 'MENU', 'More', 'moremenu' )
!this.pop1.add( 'MENU', 'Last', 'Lastmenu'
button .b1 ...
. . .
!this.b1.setpopup( !this.pop1 )
. . .
exit
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.