Archive: Change an image in a custom page


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


I'm glad I found this topic! I was about to post something remarkably similar.


Why can't you use the NOTIFY flag?


I use the notify flag. And what must I do after this??

Regards

Rainer


Check out Examples\InstallOptions\TestNotify.nsi

-Stu


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


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


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.