Next: , Up: CAD areas and methods


6.1 %CAD

eacad.png

The plug-in method %CAD defines an editable 4D CAD area. To use it, add it as a variable of type Plug-in Area to a 4D form. The variable must be typed as a longint, in this case as C_LONGINT(eaCAD), the Area ID.

The %CAD area can be used as an auto-resizable area. This is a useful feature, as the area will accomodate itself automatically when the user resizes the 4D form’s window. To accomplish this

The area can be customized with CADSetDisplay, CADSetTitleSplit and CADSetBackColor, see Area.

A %CAD area can be put on a 4D output form also, but it is recommended that you use a %CADView area for that purpose instead. A %CAD area can not be used on a 4D output form for printing, 4D CAD has its own printing methods.

Loading and storing of drawings is handled by calling 4D CAD methods, see Storing and loading drawings.

Related methods
%CADView, %CADBackground, CADGetSysBackColor, CADGetBackColor, CADSetBackColor, CADGetDisplay, CADSetDisplay, CADGetTitleSplit, CADSetTitleSplit, CADLoadFromBlob, CADStoreToBlob, CADLoadFromFile, CADStoreToFile.