Dynamically change image in an image control?

Got a problem you cannot solve? Try here.
Post Reply
JeffTucker
Posts: 62
Joined: Thu Mar 19, 2009 11:07 am
Contact:

Dynamically change image in an image control?

Post by JeffTucker »

Is there any way to specify the image to use in an image control within a dialog using script?
Hiding or showing two different image controls?
I have a dialog in which we want to show many prerequisites; some the user influences directly without quitting the installer (like the screen resolution), others are hardware related (fatal), and some are correctable by installing the prerequisite within IA. I'd like to show a big red x image for the ones where there is problem, and green check for those without any issue.
If the user can change the prereq by doing something, I want to provide a Refresh button to rerun the script logic that determines the images to show (and actions to correct)
Fiddling with technology
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Just add all images and show or hide them based on dialog rules which test values of hidden labels on the form that dereference script variables.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply