|
|
#1 |
|
Junior Member
Join Date: Dec 2005
Posts: 4
|
Dynamically changing the droplist items
I'm use Modern UI and InstallOptions. It is needed to change a droplist at current page. MUI_INSTALLOPTIONS_WRITE not works until page refresh through Next-Back. I'd like to do this in form 'a|b|c'.
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
When you mean dynically, do you mean when the user clicks on a button or another control, or while he/she is viewing the page?
-Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2005
Posts: 4
|
On button click
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
In which case, add the Flags=NOTIFY key & value to the button field. See the testnotify.nsi example script in Examples\InstallOptions.
-Stu |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Dec 2005
Posts: 4
|
The problem is not in event handling. I can not change the content of droplist at the page after dialog was created. There is no place at the pointed example where items of droplist are changed. But text fields are changed by using "SendMessage WM_SETTEXT". There was an example in this forum where it was suggested to use "SendMessage CB_INSERTSTRING". But that example does not work because of exception.
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
What is the exact code that you have tried?
Are there any compiler warnings generated by the compiler? -Stu |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Dec 2005
Posts: 4
|
Ok. It's works with CB_INSERTSTRING. Exception raised if "STR:" was not specified in SendMessage param.
Thanks for help. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|