|
|
|
|
- Overview
- Handling Context Menu controls programmatically
- Associating a context menu with a control or page
- WLanguage functions for handling menus and options
- WLanguage properties
Handling Context Menu controls programmatically
WEBDEV includes different WLanguage functions and properties to handle Context Menu controls programmatically. You can handle the menu or its options programmatically: To handle a menu option from the page, use the "<Option name>" syntax. Handling Context Menu controls programmatically Associating a context menu with a control or page You can associate a context menu with a control or page: - In the page editor ("Context menu" in the "UI" tab of the description window of the element).
- Programmatically:
Remark: you can use ControlContextMenu to get the name of the control that opened the current context menu. WLanguage functions for handling menus and options The following functions are used to handle Context Menu controls:
| | MenuAddMenu | Adds a new menu to an existing drop-down or context menu of a window or page. | MenuAddOption | Adds a new option after the last option of a drop-down or context menu. | MenuAddPopup | Transforms a menu option of a page in order for this option to open a popup. | MenuAddSeparator | Adds a new separator in a menu (drop-down or context menu). | MenuAddURLOption | Adds a new option after the last option of a drop-down or context menu. This menu option opens the page that corresponds to the specified URL. | MenuDelete | Deletes a menu or a menu option. |
WLanguage properties The following properties can be used on menu options of drop-down or context menus: | | Caption | Gets and sets the text of a menu option. | Checked | Allows you to use a checkmark () next to a menu option. | Name | Gets the name of a menu option. | Selected | Determines if the menu option is selected. | Type | Determines if the element used is a menu option. | Visible | Determines if a menu option is visible and shows or hides the option. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|