Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Popup Menus

  • Last UpdatedJan 09, 2024
  • 1 minute read

You can use any of your defined menus as popup menus for most interactive gadgets and for the form background as long as you 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 you 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:

setup 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

TitleResults for “How to create a CRG?”Also Available in