Old 28th December 2005, 03:58   #1
anz
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'.
anz is offline   Reply With Quote
Old 28th December 2005, 12:10   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 29th December 2005, 03:26   #3
anz
Junior Member
 
Join Date: Dec 2005
Posts: 4
On button click
anz is offline   Reply With Quote
Old 29th December 2005, 10:37   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 30th December 2005, 06:32   #5
anz
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.
anz is offline   Reply With Quote
Old 30th December 2005, 15:38   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 4th January 2006, 07:21   #7
anz
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.
anz is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump