Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

VIEW Gadget: AREA View

  • Last UpdatedNov 07, 2024
  • 2 minute read

Members

Name

Type

Purpose

Limits

REAL
ARRAY[4]
Get/Set

Get or set limits box [x1,y1,x2,y2].

Borders

BOOLEAN
Get/Set

Get or set borders ON (TRUE) or OFF (FALSE).

Background

REAL
Get/Set

Get or set background Color Number.

Background

STRING
Set Only

Set background Color Name.

Contents

REAL
ARRAY[2]
Get/Set

Get or set User contents ID.

Defcall

STRING
Get/Set

Get or set default interaction callback.

Height

REAL
Get Only

Get view height.

Highlight

REAL
Get/Set

Get or set highlight Color Number.

Highlight

STRING
Set Only

Set highlight Color Name.

Prompt

GADGET
Get/Set

Get or set User Prompt PARAGRAPH gadget.

Subtype

STRING
Get Only

Get subtype of graphic view.

Width

REAL
Get Only

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
(REAL storeNumber)

NO RESULT

Restores the saved VIEW with the given store number.

SaveView
(REAL storeNumber)

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 ‑‘--->

Related Links
TitleResults for “How to create a CRG?”Also Available in