AdvancedHMI Software

General Category => Support Questions => Topic started by: oqapsking on April 29, 2017, 06:24:06 AM

Title: making my own class ImageDisplayByValue
Post by: oqapsking on April 29, 2017, 06:24:06 AM
hello
what i do some times is to read true / false address then the picture changes according to it

something like (ImageDisplayByValue) one image is jpg and one is animated gif

the way i do it is i put picturebox , basiclable and timer then add the pictures i need in the project  resources

after i put the basiclabel values and properties

i go to the timer code

and write this

Code: [Select]

 if basiclabel.value = true then
picturebox.image =  Global.MfgControl.AdvancedHMI.My.Resources.Resources.imageOff
else
picturebox.image =  Global.MfgControl.AdvancedHMI.My.Resources.Resources.imageOn

end if
 


now to my question

can i make my own class to do all the above ???


the reason i do this is that  ImageDisplayByValue does not support animated ( gif) images and treats them all as jpg

with thanks



Title: Re: making my own class ImageDisplayByValue
Post by: Archie on April 29, 2017, 07:30:58 AM
can i make my own class to do all the above ???


the reason i do this is that  ImageDisplayByValue does not support animated ( gif) images and treats them all as jpg
Yes, but why not use the GraphicalIndicator?
Title: Re: making my own class ImageDisplayByValue
Post by: oqapsking on April 29, 2017, 10:26:00 AM
it does not support animation
Title: Re: making my own class ImageDisplayByValue
Post by: Archie on April 29, 2017, 12:02:30 PM
it does not support animation
That's true it doesn't. I started a new control that will support it:

http://advancedhmi.com/forum/index.php?topic=1748.0
Title: Re: making my own class ImageDisplayByValue
Post by: oqapsking on April 29, 2017, 06:08:40 PM
thanks man
it worked great