4D View v14PV EXECUTE COMMAND |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v14
PV EXECUTE COMMAND
|
PV EXECUTE COMMAND ( area ; command ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D View area | |||||
command | Longint |
![]() |
Command number | |||||
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.
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
Product: 4D View
Theme: PV Area
Number:
15989
Created: 4D View 6.8
PV GET COMMAND STATUS
PV SET COMMAND STATUS
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)