Using the Default Area

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


The default area is a template in RAM that can be used to set the default attributes of all 4D Draw areas and external windows. Any command that can be executed on a 4D Draw area can be executed on the default area by setting the area parameter to -1. You can use methods to perform operations on the default area as you would with any other area.

By using the default area, you can eliminate the unnecessary execution of code for 4D Draw areas. For example, if you want all 4D Draw areas and external windows to appear without scroll bars, you don't have to turn the scroll bars off in the On load event of each form.

You can set the attributes of both 4D Draw areas and external windows. The default area is automatically used as a template whenever a form or external window is opened. Since no code has to be executed, the default area provides a quick way to customize the drawing area.

If you do not want the default area to apply to every 4D Draw area, you can override it by creating a template on disk for the 4D Draw area or by placing the appropriate code in the On load form event of the form. A template on disk or code in the On load form event takes precedence over the default area.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next