Next: , Previous: %CADColors, Up: CAD areas and methods


6.4 %CADView

eacadview.png

The plug-in method %CADView defines a 4D CAD area that is not focusable (tabable) as on object on a 4D form. The area can be edited with the mouse, but not with the keyboard. Of course, you can make its layers non-editable (see CADSetLayerAttributes). A %CADView area is an ideal way to show preview areas (hence the name) or for use as an area that shows graphics of some form.

To use it, add %CADView as a variable of type Plug-in Area to a 4D form. The variable must be typed as a longint, in the example as C_LONGINT(eaCADPrev), the Area ID.

A %CADView area can also be put on a 4D output form. In this case, it will try to use auto zoom in this order

A %CADView area can not be used on a 4D output form for printing, 4D CAD has its own printing methods.

The area can be customized with CADSetDisplay and CADSetBackColor, see Area. Loading of drawings is handled by calling 4D CAD methods, see Storing and loading drawings.

Related methods
%CAD, %CADBackground, CADGetSysBackColor, CADGetBackColor, CADSetBackColor, CADGetDisplay, CADSetDisplay, CADLoadFromBlob, CADLoadFromFile, CADLoadFromRes.