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

AVEVA™ Engineering

Defining PLOT Views

  • Last UpdatedNov 02, 2022
  • 1 minute read

layout form !!MyForm . . .

 ...

 view .Diagram AT . . . PLOT height 20 width 40

  ..

exit

define method !!MyForm( )

 -- form constructor method

 ...

 -- Initialise plot view gadget

 !this.diagram.borders = false

 !this.diagram.background( ‘darkslate’ )

 !this.diagram.add( ‘plot1-1’ )

 ...

endmethod

The area occupied by borders and scroll bars is within the area you specify for the gadget If the border is switched off, the actual display area expands to fill the available space.

When borders are turned off, the PLOT view becomes fixed and you cannot zoom or pan within it. This may be useful if you are using PLOT views as if they were paragraphs; for example, as decoration or for information.

To define the contents of the view specify the PLOTFILE pathname with the .add() method.

To remove a PLOT from the current PLOT view, use the .clear() method. This will leave the view empty. If you want to replace the displayed PLOT with another one then just re-use the .add() method with the new PLOT file.

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