| 4D View v15PV EXECUTE COMMAND | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D View v15
 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_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
	Product:  4D View
	Theme:  PV Area
	Number:  
        15989
        
        
        
	
	Created:  4D View 6.8
	4D View Language ( 4D View v15)
	
	
	
	
	
	
	
 Add a comment
Add a comment