How to modify the button's behavior on mouse over event in Graphical Installer for NSIS?

Viewed 59

I'm new to NSIS. When I truned into Graphical Installer, I found the button's reaction on mouse over event is a litter bit different from Win10's default, which supposed to turn on highlight when mouse moves in (otherwise, turn off). But buttons under Graphical Installer look dummy when mouse moves over, and highlight only when mouse clicks, just like older windows versions.

How can I modify the button's behavior to match the effect in Win10?

1 Answers

Buttons in Graphical Installer for NSIS are defined like this:

Buttons

It is a bitmap (.bmp) file with 4 button states inside of it: normal, focused pressed and disabled.

Size (of each state) is 83 (width) x 26 (height) pixels, together 83 x 104 pixels.

I assume you are talking about Focused state - you need to make the picture for this state "highlighted" - e.g. in Gimp use a function to add brightness to this area of bitmap (see the provided buttons in examples folder).

Focused state is applied when button has focus (changed e.g. by pressing the Tab button) to signalize "active" button that can be triggered by pressing the Enter key.

So this works a little different, but we will consider this "highlight" feature.

See http://graphical-installer.com/files/manuals/nsis/source/html/intro%20-%20project-graphics.html for more info

P.S. I am developer of this tool, feel free to ask any question, also asking here on SO is fine.

Related