When you include 4D Draw in a form, you will notice that there are some optional items that are displayed in the 4D Draw area by default. These options may include the Menu bar, the Tools palette and the Scroll bar. You can procedurally hide or display any of these options by using one of the following commands: DR SET DISPLAY and DR DISPLAY OPTION. It makes it very convenient for the developer to limit the user access to any of these options, especially when the 4D Draw area is used for display only.
For example:
` Hide the Menu bar, the Tools palette and the Scroll bar for Area
If (Form event=On load)
DR DISPLAY OPTIONS (Area;16;0)
DR DISPLAY OPTIONS (Area;32;0)
DR DISPLAY OPTIONS (Area;64;0)
End if
Or
` Hide the Menu bar, the Tools palette and the Scroll bar for Area
If (Form event=On load)
DR SET DISPLAY (Area;5;0)
DR SET DISPLAY (Area;6;0)
DR SET DISPLAY (Area;7;0)
End if
Both commands are almost identical, except for one condition: The DR DISPLAY OPTIONS command can hide or show all options with a single call.
DR DISPLAY OPTIONS (Area;-1;0)