Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 23rd December 2009, 16:27   #1
chatterjb
Junior Member
 
Join Date: Dec 2009
Posts: 3
nsDialogs NSD_Del_String not working?

I've got a simple callback function when a button is clicked to remove the selected item from a listbox. It works correctly only if the topmost item is selected. Otherwise, it seems like the item directly above the actual selection gets removed rom the LB. Here's the callback:

PHP Code:
Function Callback_RemoveSite
  LogEx
::Write " RemoveSite button clicked. Inside callback function."
  
${NSD_LB_GetSelection$Listbox_SiteNameID $0
  
${NSD_LB_DelString$Listbox_SiteNameID $0
FunctionEnd 
And here is the snippet of the dialog/page where it's potentially called:

PHP Code:
${NSD_CreateListBox0u 30u 150u 90u
Pop $Listbox_SiteNameID
${NSD_CreateButton172u 105u 58u 12u "--> Remove Site" 
Pop $Button_RemoveSite 
${NSD_OnClick$Button_RemoveSite Callback_RemoveSite 
I'm not a GUI expert, but am I missing somthing here?
chatterjb is offline   Reply With Quote
Reply
Go Back   Winamp 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