Prev Previous Post   Next Post Next
Old 6th March 2008, 01:19   #1
vbguy
Junior Member
 
Join Date: Jul 2006
Posts: 30
nsDialogs::OnClick for resource added button

I've used a resource editor to add a button to the main dialog. I'm trying to add a click event to it, but to no avail.

I've created the button as follows (in the the modern_headerbmp.exe):

code:
PUSHBUTTON "", 2008, 8, 201, 50, 14


and I'm trying to add the click event using this NSIS code:

PHP Code:
GetDlgItem $BUTTON $HWNDPARENT 2008
GetFunctionAddress 
$0 OnClick
nsDialogs
::OnClick /NOUNLOAD $BUTTON $
Is there a better way to do this?

Essential I want this button to go to a custom "Options" page. And when the options page is being shown, I want the button to go back to the first page.

So there are 4 pages total. 1. The first page, 2. the options page, 3. the installation page, 4. the finish page.

This button should toggle between the 1st and 2nd page, and disappear for the last two pages.

Would I be better off just overriding the "Back" button?
vbguy is offline   Reply With Quote
 
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