Archive: Problems using NOTIFY with radiobuttons (bug ?)


Problems using NOTIFY with radiobuttons (bug ?)
Hi!

I'm trying to use the NOTIFY flag with 3 radioButtons and I'm having troubles: the 'leave' function is called 18 TIMES :eek: !!!

I've tried to play around with the example provided (NSIS\Contrib\InstallOptions\testnotify.nsi) , and it did work perfectly. I met the problem as soon as I've tried this flag with radiobuttons... (but according to the doc it should work !)

In the following thread Deguix has had a 'similar' problem, but Eccles apparently fixed it..
http://forums.winamp.com/showthread.php?threadid=164006

Is there something wrong with my script ? Or could it be a *new* bug ? :confused:

I have WinXP and tried using NSIS 2.0 final release and also using today's devsnapshot..

Thanks for any help :)

evilO/Olive


Sometimes the results depends on scripting, for me that is fixed (my page had 4 radiobuttons). So, to see what is that, attach the script, please...


Hi Deguix !

So your example is using radiobuttons as well ? I guess it's something wrong with my script then... :(
But as I had errors I used example1.nsi and I just added the code related to this flag, and I can't see what the hell is wrong with it...

Here it is, with the 'ini' file..

Thanks :)

evilO/Olive


Are you sure you did update NSIS? I tried this in my computer and it worked normally. Try to uninstall the current version of NSIS you have, get the official version 2.0 and use its updater.


Yes I did ... :(

Well yesterday in the first place I downloaded the development snapshot, installed it in another directory, and specified the new compiler to use. Didn't work.

And today I tried your suggestion, uninstalled NSIS, installed it again, and tried the NSIS updater without success. First I tried using "Download the latest development files and merge your changes" and afterwards using "Download a clean copy of the latest development files".
Both didn't work.

At this point I'm lost, I just don't know what the problem is. :(

evilO/Olive


But you tried the update thing with NSIS 2.0 or its development snapshot? NSIS 2.0 updater is certain that works. But you don't have really to update the official NSIS 2.0 to fix that bug as it already contains the bug fixed.


Sorry I wasn't precise enough. I (re)installed the official NSIS 2.0, *not* the devsnapshot. And then I updated using the NSIS menu. And then it didn't work...

evilO/Olive


I posted the program compiled in my computer using your script. Test and say if it works in your computer:


Hi Deguix !

I've tested the compiled example you sent me on :
- Windows XP Professionnal Service Pack 1
- Windows 2000 Service Pack 4
- Windows NT Service Pack 6

No success at all :cry:. Which OS have you got ?

Thanks a lot

evilO/Olive


PS:
BTW could someone else test this example? I'd like to know if I'm the only one to have the problem.. (which could mean that my brain isn't working properly :D)

The test is easy, there are 3 radiobuttons, select the 2nd or 3rd one, and then the 1st one (named "release"). The 'Leave' function should be called once. On my computer it is called exactly 18 times !!!

Thanks :) !


If you want to know, I have Windows XP Home Edition Service Pack 1 with all updates available at this moment.


Tested here on two separate copies of Windows 2000 Professional SP4 with all updates.

Works fine for me (TM).


OK, just done some more tests. Using the mouse everything is fine, but using the keyboard I too get repeated message boxes with the above example. :igor:

Another thing on my list to look at when I get a chance... sigh.


Doh! How the hell did I miss that !?? I tested this example many times, on several systems, I guess I'm just too used to the keyboard :p

Deguix and Eccles, thanks a lot for your tests and replies, really :up:. I was going nuts as I couldn't determine the origin of the problem, and as I thought I was the only one to have it (kind of selfish, isn't it ? ;)).

Thanks a lot to both of you, it really helped :)

evilO/Olive