How to hide the 4D View menu/tool/formula bar on load.
When you use PV EXECUTE COMMAND , it changes the status of the command that was passed to 1 or 0 depending on its current status. If the current state is 1 then it changes it to 0 and vice versa.
The following method will check to see if the standard toolbar is active or not. If the standard toolbar is active, then it hides all toolbars, menu bar, and formula bar.
Case of
: (Form event=On Load )
PV GET COMMAND STATUS (area;pv cmd view toolbar standard ;$status;$checkbox;$name)
If ($checkbox=1)
PV EXECUTE COMMAND (area;pv cmd view toolbar standard )
PV EXECUTE COMMAND (area;pv cmd view toolbar border )
PV EXECUTE COMMAND (area;pv cmd view toolbar number )
PV EXECUTE COMMAND (area;pv cmd view toolbar style )
PV EXECUTE COMMAND (area;pv cmd view menu bar )
PV EXECUTE COMMAND (area;pv cmd view formula bar )
End if
End case