CHAPTER 6 – Functions and Methods
OMRON
Page 50
Revision 2.0
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
objectname
string
The identifier of the OLE object to be played.
OLEVerbNumber
integer
The verb number has a specific meaning to the OLE
application. Typical values are:
0: specifies the action that occurs when an end-user double
clicks the object in its container. The object determines this
action (often ‘edit’ or ‘play’).
-1: instructs the object to show itself for editing or viewing.
Usually an alias for some other object-defined verb.
-2: instructs an object to open itself for editing in a window
separate from that of its container.
-3: causes an object to remove its user interface from the view.
Applies only to objects that are activated in-place.
Positive numbers designate object specific verbs.
Typical Example
PlayOLE(“ole_1”,0)
The object ‘ole_1’ is played using its primary verb.
DisplayPicture
Description
Reload a picture for a Picture object.
Syntax
returnstate = DisplayPicture("objectname", filename)
Remarks
Argument Type
Description
returnstate
bool
Returnstate
is ‘1’ if the function is successful, or ‘0’ otherwise.
objectname
string
The identifier of the bitmap object with a to be loaded and
displayed
filename
string
The filename of the bitmap to be displayed. This can be a
constant (inside quotes) or a text point.
Typical Example
DisplayPicture("Bitmap_1","C:\Application\Floorplan1.bmp")
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...