Regular API
function
simSetModuleMenuItemState
Description
Updates the state of a menu item added with the
simAddModuleMenuEntry
command.
C synopsis
simInt simSetModuleMenuItemState(simInt itemHandle,simInt state,const simChar* label)
C parameters
itemHandle
: handle of the item as returned by the
simAddModuleMenuEntry
function
state
: state of the item. Bit 0 (1)indicates the enabled state, bit 1 (2)indicates the checked state
label
: label of the item. Can be NULL in which case the label is kept unchanged. If label is "", the item becomes a separator
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis
-
Lua parameters
-
Lua return values
-
All regular API functions on one page