Under interface, I use a label that changes its image from time to time. So, somewhere in my code, I want to make an if statement where, if that label uses a specific image then perform action a else do action b. Is there a way to get a label's image programmatically (if it uses image.png for example, get that name and store it in a variable)?
Thanks
Feb 20 2016, 4:52 am
Best response
|
|
You can use winget().
|
Keep in mind that winget() actually queries the client to get that information, so there is a delay (can be anywhere from 50ms to 200ms or more). It's generally better to just track on the server which image you set last (unless you have client-side controls that can change it without informing the server)
|