4D View v16

PV EXECUTE COMMAND

Home

 
4D View v16
PV EXECUTE COMMAND

PV EXECUTE COMMAND 


 

PV EXECUTE COMMAND ( area ; command ) 
Parameter Type   Description
area  Longint in 4D View area
command  Longint in 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.

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_LONGINT($status//1=enable 0=disable
 C_LONGINT($checkbox//0=unchecked, 1=checked
 C_TEXT($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



See also 

PV GET COMMAND STATUS
PV SET COMMAND STATUS

 
PROPERTIES 

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

 
HISTORY 

Created: 4D View 6.8

 
ARTICLE USAGE

4D View Language ( 4D View v16)