rainer78
9th February 2006 09:38 UTC
Change an image in a custom page
Hi,
i´ve created a custom page (see Attachment). You can see 2 comboboxes and an bitmap. Now if the user change an entry in one of the comboboxes the bitmap should change too.
I´ve searched the forum to do this, but i don´t have found an example that could help me. Does anybody know how to do this, and maybe anybody has an example for changing bitmaps in a custom page.
Best regards
Rainer
bhaelochon
9th February 2006 15:07 UTC
I'm glad I found this topic! I was about to post something remarkably similar.
iceman_k
9th February 2006 15:51 UTC
Why can't you use the NOTIFY flag?
rainer78
9th February 2006 16:35 UTC
I use the notify flag. And what must I do after this??
Regards
Rainer
Afrow UK
9th February 2006 17:35 UTC
Check out Examples\InstallOptions\TestNotify.nsi
-Stu
rainer78
10th February 2006 10:29 UTC
Hi,
the problem is NOT to react on the notify flag. The problem is to change the image during runtime if some changes the an combobox entry. How to change the image during runtime?
Regards
Rainer
kichik
10th February 2006 10:36 UTC
You need to manually load and set the image. This requires some Windows API, and therefore the System plug-in. See the following example:
http://nsis.sourceforge.net/ModernUI...stalling_files
iceman_k
10th February 2006 10:50 UTC
Is it necessary to have a Combobox and not a Droplist?
The Notify callback will be invoked whenever the droplist selection is changed and the image element text attribute can be modified. Then call Abort to return to the IO page.