CREATE FLOATMENU
PLBCMP GUI Only
The CREATE FLOATMENU statement initializes a FLOATMENU object variable. This menu may be position anywhere in the window. The statement format is:
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
parent
Optional. A previously created WINDOW or PANEL object variable or pointer to a WINDOW or PANEL object on which the object is created.
floatmenu
Required. The name of a previously defined FLOATMENU object variable or pointer to a FLOATMENU object.
pos
Required. The screen position of the object given as: {top}:{bottom}:{left}:{right}.
menu-data
Required. A Character String Variable or Literal that defines the menu items displayed in the FLOATMENU.
property list
Optional. One or more of the object properties.
Flags Affected: NONE
Note the following:
If {menu-data} is specified by a character string contained in a character variable or character literal, special characters are allowed that help define the menu.
The first item in the character string is the menu title. Menu items within the {menu-data} are semicolon delimited. Each subsequent item is sequentially assigned an item number starting at one.
{menu-data} items may have special suffixes that result in one of the standard Edit menu functions being activated when the item is selected. The runtime also automatically enables or disables these items based on the current focus and the status of the clipboard.
{menu-data} strings may be used in CREATE COMBOBOX, CREATE FLOATMENU, CREATE MENU, or CREATE SUBMENU. For COMBOBOX and SUBMENU, the first item in the character string is not used.
The special character control characters '(', ')', '/', and '<' can be included as part of a menu item name by repeating the character in the {menu-data} string.
{menu-data} string items may be in INSERTITEM and SETITEM instructions.
If the optional {parent} parameter is not specified, the default window is used.
See Also: Example Code, CREATE, Object Output Instructions
![]() |