VIEW Gadget: AREA View
- Last UpdatedNov 07, 2024
- 2 minute read
Members
|
Name |
Type |
Purpose |
|---|---|---|
|
Limits |
REAL |
Get or set limits box [x1,y1,x2,y2]. |
|
Borders |
BOOLEAN |
Get or set borders ON (TRUE) or OFF (FALSE). |
|
Background |
REAL |
Get or set background Color Number. |
|
Background |
STRING |
Set background Color Name. |
|
Contents |
REAL |
Get or set User contents ID. |
|
Defcall |
STRING |
Get or set default interaction callback. |
|
Height |
REAL |
Get view height. |
|
Highlight |
REAL |
Get or set highlight Color Number. |
|
Highlight |
STRING |
Set highlight Color Name. |
|
Prompt |
GADGET |
Get or set User Prompt PARAGRAPH gadget. |
|
Subtype |
STRING |
Get subtype of graphic view. |
|
Width |
REAL |
Get view width. |
Methods
|
Name |
Result |
Purpose |
|---|---|---|
|
Background() |
STRING |
Returns the highlight color as a name string. |
|
Clear() |
NO RESULT |
Clear VIEW contents. |
|
Highlight() |
STRING |
Returns the highlight color as a name string. |
|
Refresh() |
NO RESULT |
Refreshes the display of the gadget. |
|
RestoreView |
NO RESULT |
Restores the saved VIEW with the given store number. |
|
SaveView |
NO RESULT |
Saves the current VIEW. The number must be in the range 1 to 4. |
|
SetSize(REAL width, REAL height) |
NO RESULT |
Set VIEW size. |
Command
The VIEW ... AREA command puts you into View Setup mode. You remain in View Setup mode until you use the EXIT command.
.-------------------------<------------------------.
/ |
(AREa) --+- <vshap> -----------------------------------. |
+- PUT - <sgid> ------------------------------| |
+- LIMits <uval> <uval> - TO - <uval> <uval> -| |
+- SETColour - <colno> -----------------------| |
+- SETHighlight - <colno> --------------------‘- NL -|
+- <cursor> -----------------------------------------|
+- <border> -----------------------------------------|
+-- <pml> -------------------------------------------*
‘-- EXIT -->
DRAW where <sgid> is either CE (current element) or the name of a 2D graphical element (for example, DRAW SHEET, VIEW, LIBRARY) and <colno> is any valid DRAW color definition.
And <cursor> is the syntax for selecting the cursor type, as follows:
>-- CURSortype ---+-- POINTER ----.
+-- NOCURSOR ---|
+-- PICK -------|
+-- PICKPLUS ---|
‘-- CROSSHAIR ‑-‘-->
<border> allows control of zooming and panning:
>--- BORDers --+-- ON --.
‘-- OFF ‑‘--->