Skip to content
⌘ NSIS Forum Archive

Change an image in a custom page

8 posts

rainer78#

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
rainer78#
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#
You need to manually load and set the image. This requires some Windows API, and therefore the System plug-in. See the following example:

iceman_k#
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.