Command PV SET COMMAND STATUS

4D View

PV SET COMMAND STATUS

version 2004.1 (Modified)


PV SET COMMAND STATUS (area; command; status)

ParameterTypeDescription
areaLongint4D View area
commandLongintCommand number
statusInteger0 = Disable; 1 = Enable

Description

The PV SET COMMAND STATUS command enables or disables the menu command specified by command. These commands can be localized in menus (allow using 4D View menus using programming) or palettes. If you pass 0 in the command parameter, the command will modify the status of all 4D View menu commands.

• If status equals 0, the command will not be executed when called and the menu (or button) will be dimmed.

• If status equals 1, the command will be executed when called and the menu (or button) will be active.

A disabled menu command cannot be executed using programming with the PV EXECUTE COMMAND command.

PV ON COMMAND is also not available if the user tries to use a command disabled using PV SET COMMAND STATUS).

Examples

1. To forbid displaying references in a 4D View area, simply write:

      `3rd parameter to 1 to re-enable
   PV SET COMMAND STATUS (area;pv cmd view references;0)

2. See the example for the PV EXECUTE COMMAND command.

See Also

PV EXECUTE COMMAND, PV GET COMMAND STATUS.

Constants

PV Commands theme.