version 6.8
PV EXECUTE COMMAND (area; command)
Parameter | Type | Description | |
area | Longint | 4D View area | |
command | Longint | Command number |
Description
The PV EXECUTE COMMAND command executes in area the 4D View menu command whose number is passed in the command parameter.
PV Commands theme constants are used to define the command parameter.
Example
Below is a method that switches the vertical scrollbar to visible or hidden. The corresponding "Display" menu is also activated/deactivated for the "vertical scrollbar" row.
C_INTEGER($status) `1=enable 0=disable C_INTEGER($checkbox) `0=unchecked, 1=checked C_STRING(30;$name) `Name of the corresponding command `Get info PV GET COMMAND STATUS (Area;pv cmd view Vscrollbar;$status;$checkbox;$name) If ($checkbox=1) `Is the vertical scrollbar visible? PV EXECUTE COMMAND (Area;pv cmd view Vscrollbar) `Hide it PV SET COMMAND STATUS (Area;pv cmd view Vscrollbar;0) `Disable it Else PV SET COMMAND STATUS (Area;pv cmd view Vscrollbar;1) `Activate the command PV EXECUTE COMMAND (Area;pv cmd view Vscrollbar) `Display scrollbar End if End it
See Also
PV GET COMMAND STATUS, PV SET COMMAND STATUS.
Constants
PV Commands theme.