Skip to content
⌘ NSIS Forum Archive

Plugin Request for Check Bitmaps

8 posts

kookh#

Plugin Request for Check Bitmaps

Having a visual style friendly systreeview32 on the components page is a popular classic request. However, developers have made it clear that it can't be done.

Alternatively, I though maybe someone could make a plugin that generates a check bitmap file from the current visual style during runtime. A user's current visual style is stored in the registry and the bitmap for checkboxes is a bitmap resource inside the msstyles file.

Is this feasible ?
kichik#
It should be possible. However, how will you generate the special modes of the check boxes? How will you generate a read-only check box from the visual style?
kookh#
It's all in the bitmap inside the msstyles file. Here's a screenshot:
Afrow UK#
You still need a partially selected one. I guess you could combine two with some opacity but I wouldn't have a clue how to do that 🙂

-Stu
kookh#
the attached image shows unchecked, partially selected, and selected checkboxes in all 4 states: normal, hovered, focused, and disabled. I believe that includes all the needed checkboxes so there's no need to combine more than one image with some opacity...
kookh#
yup... here's its equivalent in the default XP visual style
deguix#
Hmmm.... InstallOptionsEx implements checkboxes like the ones in the NSIS's own TreeView control. My code could be used to implement the style of checkboxes you told me about, with changes. I'm in vacation right now, and that project is abandoned, but if there is enough positive comments about this idea, and some incentive for me, I could restart working on that after some time I get back.