|
| |
The image button is a cross between a check box and an image box. It
can display 2 different images and returns values of 1 or 0. If can be set
through code, or clicked to change.

Simply drag and drop an image button onto the plot and assign it 2 images
(drag images to configuration images). One image will be the 0 image, and
the other the 1 image.
The state/image of the button will change by clicking it.
The state may also be changed by code. For example, above the update
value is (BIT0). As binary data arrives and the objects are updated, the
image will change states based on Bit 0 if the incoming byte.
When clicked, the state is changed and the event code is ran..
 | Creating:
oImgBut.objName=L,T
[,W,H,image0,border (0/1),image1]
!POBJ oImgBut.ibut1=5,20,10,10,comp\LED_RED_1.jpg,1,comp\LED_RED_0.jpg
|
 | Functions:
SET Value (.Set or omitted)
Images are asumed to be in the media path, the macro path (PATH), or
can be provided the full path.
!POBJ objName=value (0/1)
!POBJ
ibut1=1
Clear (.Clear or Clr)
Clears the images. Images are transparent when cleared.
!POBJ objName.Clr
!POBJ ibut1.Clr
Text Tip (.Tip)
Sets the text pop-up tip
!POBJ objName.Tip=Text string
!POBJ iBut1.Tip=Status of Heater
Move (.Move or .M)
Moves the object to new coordinates/changes sizing
!POBJ objName.Move=[L,T,W,H] or !POBJ objName.M=[L,T,W,H]
!POBJ ibut1.M=50,50,,10
|
 | Update Value (.Update or .U)
Sets the value which will be used to update the object whenever a !POBJ
Update is performed.
!POBJ obj.Name.U=value (0/1)
!POBJ ibut1.U=(BIT0)
|
 | Code Event - (.C or .Code)
Activated by a click.
objName.Code=string of code.
!POBJ ibut1.C=!STAT The value is ((ME))
|
 | Values
(objName) - Returns the image state, 1 or 0
(objName.T) - Top coordinate
(objName.L) - Left coordinate
(objName.W) - Width
(objName.H) - Height
(objName.B) - Bottom coordinate
(objName.R) - Right coordinate
(ME) - Used only in its event code, returns object name.
((ME)) - Used only in its event code, returns object value.
|
|