Height; Horizontal Fill - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Object Commands
6-1-6

Height

6-1-7

Horizontal Fill

50
Syntax
objectname.height (expression, context)
objectname.height = expression
Remarks
Argument
Description
objectname
This is the name of the object. Where a script is directly
attached to an object, objectname is not required.
expression
This is a value, point or an arithmetic expression
returning a new height value in pixels.
context
This argument is optional and may be omitted. It defines
which part of the object is the datum, and remains static.
May be one of:
@TOP - uses object top as datum.
@CENTRE - uses object centre as datum
@BOTTOM - uses object bottom as datum
If omitted @CENTRE is assumed
Typical Examples
height (100)
or
height = 100
The height of the current object is set to 100.
LINE_1.height (stretch/offset, @top)
The height of object 'LINE_1' is changed to the value calculated by points
'stretch' and 'offset', keeping the top where it is.
Syntax
objectname.horizontal%fill (expression, context)
Remarks
Argument
Description
objectname
This is the name of the object. Where a script is directly
attached to an object, objectname is not required.
expression
This is an arithmetic expression that must return a value
between 0 and 100. On return of a valid result, the fill
commences from left to right.
context
This argument is optional and may be omitted. It defines
which side of the object is filled from. May be one of:
@LEFT - fill from the left
@RIGHT - fill from the right
If omitted, @LEFT is assumed
Typical Examples
horizontal%fill (50)
The current object to which this example applies is filled by 50%.
ELLIPSE_1.horizontal%fill (GAS_LEVEL, @RIGHT)
SECTION 6 Functions and Methods

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents