Archive: Plugin Request for Check Bitmaps


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 ?


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?


It's all in the bitmap inside the msstyles file. Here's a screenshot:


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


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...


Ah so the partially selected ones are the ones with the - in them?

-Stu


yup... here's its equivalent in the default XP visual style


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.