GetMenuDefinition

All Editions  image\bltlrgss.gif Related Transactions  image\bltlrgss.gif Example

The GetMenuDefinition transaction returns the number of commands in the specified menu, and the command identifiers.

Type XTYP_REQUEST

Syntax [GetMenuDefinition(menuID)]

Parameter

Data type

Values

Meaning

menuID

WORD

1

main Imagenation menu

 

 

2

Layers window menu

 

 

3

Detail window menu

 

 

4

Symbols palette menu

Reply

Data type

Values

Meaning

count

WORD

1 | 2 | 3 | …

number of commands in the menu

commandIDs

WORD

1

separator

 

 

2

open window list. See Remarks.

 

 

3

most recently used files list. See Remarks.

 

 

Command IDs

identifier of the command in the menu

Remarks

Only the floating windows available in your edition of Imagenation can be queried.

In the reply, commas are used to separate entries. Periods are used to denote the level of the entry. For example, the File menu is on the first level and has an identifier of 100. The File, Open command is on the second level, and its identifieris 100.101.

Values within an open window or most recently used file list do not appear in the menu definition.

Release information

Added in Release 4.5.

See also

Customizing menu bars

Changing menu contents