REFRESH PICTURE
in DW PICTURE BOX
-
Insert picture control in dw form i.e
PictureBox1
-
Create constant i.e
RefreshPictureBoxTF
and set value to "true"
-
Add
TextBox that
will hold value that changes i.e.
Textbox1
-
Add
listbox, set
its "Items"
property to Textbox1Return
object that is changing value
-
Create Specification
Macro(i.e AlternatePictureBoxPicture),
-
Add "Drive Constant
value" from the toolbox
-
In the "Constant
Value" add:
Not(DwConstantRefreshPictureBoxTF)
-
Constant Name:
DwConstantRefreshPictureBoxTF
-
Connect it to "Start"
-
Go back to the
listbox
(named under #4) and add in "OnChange" event name of the
specification Macro (named under #5)
-
Create Variable to
call mijoPPGauge( using mijoPowerPack Framework for DriveWorks
-
In the picturebox1,
in the FileName property add the following:
If(DwConstantRefreshPictureBoxTF=TRUE,
Substitute(DWVariablemijoGaugeTemp01ImagePath,"01","01_1"),Substitute(DWVariablemijoGaugeTemp01ImagePath,"01","01_2"))