OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 43
The selectable object ‘PUSH_8’ is disabled provided Integer point ‘count’ AND Boolean point ‘flag’
return ‘‘TRUE’’.
Height
Syntax
objectname.height (expression, context)
objectname.height = expression
Remarks
Argument Description
objectname
This is the name of the object, following any amendment to the object name.
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.
Horizontal Fill
Syntax
objectname.horizontal%fill (expression, context)
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...