All Editions
Related Functions
Example
The IN_GetMenuDefinition function returns a list of the command identifiers for the commands in the specified menus.
Syntax
int IN_GetMenuDefinition ( menuID, maxSize, pCmdList )
|
Parameters |
Values |
Meaning |
|
SHORT menuID |
IN_MENU_MAIN (1) main Imagenation menu IN_MENU_LAYERS_WINDOW (2) IN_MENU_DETAIL_WINDOW (3) IN_MENU_SYMBOL_PALETTE (4) | |
|
SHORT maxSize |
the maximum size of the pCmdList array in bytes | |
|
Values |
Meaning | |
|
CHARPTR pCmdList |
pointer to: the number of commands in the list, followed by: Command IDs pointer to the list of commands in the selected menu. For example: IN_MENUITEM_SEPARATOR (1) IN_MENUITEM_WINDOW_LIST (2) IN_MENUITEM_MRU_LIST (3) position of the most recently used list | |
Remarks
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 identifier is 100.101.
Only floating windows available in your edition of Imagenation can be queried.
Release information
Added to Imagenation for Windows in Release 4.50.
As of Release 5.1, also available in Imagenation for UNIX.
See also