SetMenuStatus

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

The SetMenuStatus transaction sets the availability of the specified command in a menu.

Type XTYP_EXECUTE

Syntax [SetMenuStatus(menuID, status)]

Parameter

Data type

Values

Meaning

menuID

WORD

Command IDs

identifier of the command to change

status

WORD

1

enabled. See Remarks.

 

 

2

grayed. See Remarks.

 

 

4

removed

 

 

8

checked. See Remarks.

 

 

(can be ORed)

 

Remarks

Only commands available in your edition of Imagenation can be enabled.

When you enable or gray a command in a menu, its button is also enabled or grayed.

Only external commands can be set to checked. This option is ignored for internal Imagenation commands.

With external commands in a menu, the integration must handle context-sensitivity. Imagenation will not recognize the external command.

Release Information

Added in Release 3.70.

See also

Customizing menu bars

Changing menu contents

Defining external commands