Old 31st May 2012, 08:07   #1
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,351
Dynamic Combobox

first nsis project in about a year, feeling kinda rusty. i've searched the forum, but i doesn't seem like anybody's been in the situation i'm in right now.

i have a combobox that's filled with values from a standard ini-file. now what i'd like to do is use another control (e.g. a checkbox) to influence what's being displayed in the combobox.

for example, when the checkbox is checked it the combobox displays values from one ini-file, when it's not checked it displays valuesfrom a second ini-file.

i guess i could just fill the combobox with a simple onchange function, but how can i clear all entries in it?
Yathosho is offline   Reply With Quote
Old 31st May 2012, 08:36   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,593
Lookup combobox messages in winmessages.nsh or MSDN (Hint: CB_R...)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 31st May 2012, 08:43   #3
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,351
Quote:
Originally Posted by Anders View Post
Lookup combobox messages in winmessages.nsh or MSDN (Hint: CB_R...)
see how rusty i am, could've thought of that myself

well thanks, CB_RESETCONTENT seems to be what i was looking for!
Yathosho is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
combobox, nsdialogs

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