CT MENU STATUS

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT MENU STATUS (area; command; checked; available; name)

ParameterTypeDescription
areaLongint4D Chart area
commandLongintNumber of command
checkedIntegerIs the menu item checked?
0 = Not checked
1 = Checked
availableIntegerIs the menu item available or dimmed?
0 = Disabled
1 = Enabled
nameStringReceives name of menu item

Description

The CT MENU STATUS command returns in the checked, available, and name parameters information about the menu item in area represented by command.

The possible values for command are listed in the Command Codes section.

If available equals 0, the menu item is disabled. If available equals 1, the menu item is enabled.

If checked equals 0, the menu item is not checked. If checked equals 1, the menu item is checked.

name is the text of the menu item.

Example

This example checks a menu item to see if the area is in Show References or Show Values mode. If the area is in Show References mode, Show Values mode is turned on.

   CT MENU STATUS (Area;6006;$Checked;$Available;$Name)
   If ($Name="Show References")
      CT DO COMMAND (Area;6006)
   End if 

See Also

Command Codes, CT DO COMMAND.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next