POPUPMENU


PLBCMP GUI Only

square.png Properties

square.png Events

square.png Methods

square.png Instructions

 

The POPUPMENU instruction defines an object variable for a standard GUI pop-up menu. To define a POPUPMENU, use one of the following statement formats:

 

(1)

[label]

POPUPMENU

[%]

(2)

[label]

POPUPMENU

(arraysize)

(3)

[label]

POPUPMENU

^

(4)

[label]

POPUPMENU

^,{target}

(5)

[label]

POPUPMENU

^(arraysize)

(6)

[label]

POPUPMENU

^(arraysize),({target}),...,({target})

 

Where:

label

Optional. A Data Label.

%

Optional. Denotes the item as being GLOBAL.

arraysize

Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.

^

Optional. Denotes the item as being a POINTER.

target

Required. The name of a previously defined data item of the same type.

Flags Affected: NONE

Note the following:

  1. POPUPMENU is an obsolete object replaced by the COMBOBOX object.

  2. A POPUPMENU contains as many items as there are lines in the menu. Each menu line is one item.

  3. The entire POPUPMENU is referenced as item number zero.

  4. Items are accessible through the SETITEM or GETITEM instructions.

  5. Multi-dimension arrays are supported to a maximum of fourteen dimensions.

  6. The ^ denotes Pointer Variable.

  7. Although a POPUPMENU may be defined as Global, it is DESTROYed during a CHAIN instruction.

  8. The CHECKITEM instruction allows a check mark to appear with a menu item.

  9. POPUPMENUs cannot be scaled using the WINDOW Scale method.

 

 

See Also: Example Code, Object Definitions, Object Output Instructions

 



PL/B Language Reference PLBOBJECT PROGRESS