newObjects ALP - VarioMenu Usage Example

This example illustrates some basic functionallity of VarioMenu feature in ALPFrame application. VarioMenu allows you to create fully custom main and popup menus and use them in the windows of ALPFrame. Press the buttons below to see how the menus are created, showed and changed. See also the source of that page and pay special attention to the script section.

Shows the created menu as main menu in the current ALPFrame window.

Also  popup menu is availbale. The first item in it changes its behavour depending on that where was the mouse pointer when you clicked right mouse button. When this item is clicked its handler function tries to show the 'value' attribute/prperty of the control on which you have clicked. For example calling popup menu on some of the buttons on the left and selecting 'Target Object' from it causes a message box to appear with the caption of the button.

Below the separator in the popup menu is located the very same radio group of item as in File menu. You can see that when you change the selected radio item from the one place, it also changes in the other.

Extends the existing menu with Help and Edit submenus. The checkable item 'Enable File menu' in Edit submenu enables or disables the whole File submenu. The same item is added in the popup menu. Accelerator keys are vailable to items in menu 'Help' and for 'File | Exit'.

Renames 'Edit' menu to 'Availability' and switches enable state of 'Help' menu.

Hides the main menu.