![]() |
#1 |
Junior Member
Join Date: Feb 2006
Posts: 8
|
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 |
![]() |
![]() |
![]() |
#2 |
Junior Member
|
I'm glad I found this topic! I was about to post something remarkably similar.
"Never hold your farts in. They travel up your spine and into your brain, and that's where you get shitty ideas from." - Unknown |
![]() |
![]() |
![]() |
#3 |
NSIS Dev
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
|
Why can't you use the NOTIFY flag?
|
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Feb 2006
Posts: 8
|
I use the notify flag. And what must I do after this??
Regards Rainer |
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Check out Examples\InstallOptions\TestNotify.nsi
-Stu |
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Feb 2006
Posts: 8
|
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 |
![]() |
![]() |
![]() |
#7 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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 NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#8 |
NSIS Dev
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
|
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. |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|