Archive: Add new button to button panel for custom pages?


Add new button to button panel for custom pages?
I'd like to add my own button to empty space at the left of button panel. Right below the "NullSoft Install System" label. It must show only when my custom page is shown. Is it possible?


I found the ButtonEvent plugin, but when I run compiled example I get windows error "memory can not be read at address.... ". Is there any other ways to add a button?

UPD: I get the Unicode version of plugin ButtonEvent and example compiles and run ok now, but when I click on TryMe button nothing is happen and button handler function is not called. What is wrong?


Did you attached event handler to button?
I suppose you modified some UI file with ResHacker - do you use correct control ID with ButtonEvent plug-in?

Can you paste your code here? (if it is long use pastebin)


Yes, handler is attached. I compiled the example just as it was in the source zip. Also, one guy send me test code example, that 100% works on his computer, but when I compiled it, I get similar result - handler is not called. I guess problem is somewhere in my configuration, but how to check where it is? I plan to install NSIS from scratch to separate directory and do not add any plugins except ButtonEvent and see if it will work.


Make sure you downloaded the latest version. I have just built the example scripts with both ANSI NSIS and Unicode NSIS and had no problems.

Stu