Old 6th January 2006, 05:26   #1
Newby in NSIS
Guest
 
Posts: n/a
Very Simple Question

Hi,

I'd like to search the forums but, unfortunately, I have very little time.

I'd try my luck in asking any one of you guys.

I have a custom page that has a listbox. The listbox contains all available web servers installed on the client pc. By default, none is selected/highlighted and I disable the next button. I set the listbox's Flags property to Notify, but whenever I select something, it automatically goes to the next page.

Is there a way for me to enable the next button once an item is selected in the listbox instead of it going to the next page?

Thank you very much.
  Reply With Quote
Old 6th January 2006, 07:59   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
To enable or disable the Next button, use:
code:
GetDlgItem $0 $HWNDPARENT 1
EnableWindow $0 1 # enable
#EnableWindow $0 0 # disable


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik 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