|
|
#1 |
|
Junior Member
Join Date: Feb 2009
Location: Coimbra, Portugal
Posts: 2
|
Problem with WM_NEXTDLGCTL
I'm trying to create a page with 2 buttons. One of them it to replace the NEXT button. So I've used this line to make it default.
code: The problem is when I click on the other button, instead of running the function click2, it runs the function click1. But on the second click it already goes to the function click2. More strange is, that if I do the first click in any place of the dialog, then when I click on the button2, it goes to the function click2. Strange?? More strange. If I've just 1 page, everything works just fine. Where goes a script so you can test it. code: |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
It's actually the BM_SETSTATE line that does the trouble. You're specifying (with the wrong constant) that the button is pressed. When the user clicks on something else, it first "unclicks" the button and activates its OnClick function.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2009
Location: Coimbra, Portugal
Posts: 2
|
Thanks
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|