IN_SetMenuStatus

All Editions image\bltlrgsq_shg.gif Related Functions  image\bltlrgsq_shg.gif Example

The IN_SetMenuStatus function sets the availability of the specified command in the menu.

Syntax

int IN_SetMenuStatus( menuID, status )

Parameters

Values

Meaning

SHORT menuID

Command IDs

identifier of the command to change

SHORT status

IN_UI_ENABLED (1). See Remarks.

IN_UI_GREYED (2). See Remarks.

IN_UI_REMOVED (4)

IN_UI_CHECKED (8). See Remarks.

(can be ORed)

Remarks

You can only enable commands available in your edition of Imagenation.

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

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

Your integration is responsible for controlling the availability of external commands that you have added to the command table.

Release information

Added to Imagenation for Windows in Release 4.10.

As of Release 5.1, also available in Imagenation for UNIX.

See also

Changing menu contents

Defining menu bars