Old 5th July 2012, 21:32   #1
dizou
Junior Member
 
Join Date: Jun 2011
Posts: 26
How do I set the default selection for a drop list?

I'm creating a drop list like this:

code:
${NSD_CreateDropList} 5u 23u 90% 80u ""
Pop $TimeZoneDropList

${NSD_CB_AddString} $TimeZoneDropList "US/Alaska"
${NSD_CB_AddString} $TimeZoneDropList "US/Arizona"
${NSD_CB_AddString} $TimeZoneDropList "US/Central"
${NSD_CB_AddString} $TimeZoneDropList "US/Eastern"
${NSD_CB_AddString} $TimeZoneDropList "US/Hawaii"
${NSD_CB_AddString} $TimeZoneDropList "US/Mountain"
${NSD_CB_AddString} $TimeZoneDropList "US/Pacific"



How do I set the default selection for the drop list?

I tried this, but it didn't do anything:

code:
${NSD_CreateDropList} 5u 23u 90% 80u "US/Eastern"
dizou is offline   Reply With Quote
Old 5th July 2012, 21:44   #2
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
Use ${NSD_CB_SelectString} $TimeZoneDropList "US/Eastern" after you have added the items to the list.

Last edited by demiller9; 5th July 2012 at 21:44. Reason: expanded the sentence
demiller9 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