Object Commands SECTION 6 Functions and Methods
50
6-1-6 Height
Syntax
objectname.height (expression, context)
objectname.height = expression
Remarks
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.
6-1-7 Horizontal Fill
Syntax
objectname.horizontal%fill (expression, context)
Remarks
Typical Examples
horizontal%fill (50)
The current object to which this example applies is filled by 50%.
ELLIPSE_1.horizontal%fill (GAS_LEVEL, @RIGHT)
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
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