4D View v14

PV SET COMMAND STATUS

Home

 
4D View v14
PV SET COMMAND STATUS

PV SET COMMAND STATUS 


 

PV SET COMMAND STATUS ( area ; command ; status ) 
Parameter Type   Description
area  Longint in 4D View area
command  Longint in Command number
status  Integer in 0 = Disable; 1 = Enable

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. PV Commands theme constants are used to define the command parameter. 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).

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)

See the example for the PV EXECUTE COMMAND command.

 
PROPERTIES 

Product: 4D View
Theme: PV Area
Number: 15988

 
HISTORY 

Modified: 4D View 2004.1

 
SEE ALSO 

PV EXECUTE COMMAND
PV GET COMMAND STATUS

 
ARTICLE USAGE

4D View Language ( 4D View v11.4)
4D View Language ( 4D View v12)
4D View Language ( 4D v13)
4D View Language ( 4D View v14 R2)
4D View Language ( 4D View v14)
4D View Language ( 4D View v14 R3)
4D View Language ( 4D View v14 R4)