Page 1 of 1

Windows Acrylic (VistaGlass) UI issue with CheckListBox

Posted: Tue Sep 14, 2021 8:32 am
by barbeauj
I am trying to implement a feature selection UI using the style of Windows Acrylic (through the VistaGlass dialog item with all proper settings to enable Acrylic) and a CheckListBox.

Using a TreeView dialog component that receives its information from Component List, I can implement this properly with no UI problem, but since I only have independent/top-level features in the component list, I have no need for a full TreeView since no common parent to the features can be selected, are any children nodes displayed.

To simplify the UI to what I needed, I changed my dialog to use a CheckListBox to display the Component List, but there seems to be a problem when using those when using the Windows Acrylic theme (ie: VistaGlass' GlassEnabled and SheetOfGlass properties are set to True and the form's borderStyle set to bsNone).

The problem is that when checking or clicking on multiple items in the CheckListBox will ultimately result in the white background of the CheckListBox to suddenly become black, with some glitchy looking specks of white around the checkboxes themselves.

This problem can be easily reproduced by creating a New Project using the wizard and selecting the Acrylic theme. Then, we simply need to change the componentstree form to use a CheckListBox instead of a Treeview.

Screenshot:
acrylic_checklistbox.png
acrylic_checklistbox.png (96.05 KiB) Viewed 615 times


Setting the VistaGlass object's SheetOfGlass property to False will prevent this issue from occuring and the checkListBox will work without any glitches -- but unfortunately, this means that the Acrylic theme is also gone.

Has anyone found a way to work around this issue? Using a Treeview with its "Disable/Enable feature on this computer/Enable feature on all computers" multiple options is really overkill for the UI I am trying to build, which only needs the user to specify which independant features need to be installed.

Cheers!

Re: Windows Acrylic (VistaGlass) UI issue with CheckListBox

Posted: Wed Sep 15, 2021 1:31 pm
by FrancescoT
I suppose this is due a compatibility issue of the "CheckListBox" with the Acrylic Theme ...but, let me check.

Re: Windows Acrylic (VistaGlass) UI issue with CheckListBox

Posted: Fri Sep 17, 2021 1:28 pm
by FrancescoT
Unfortunately, I can only confirm this limitation.

At any rate, and because for what I understand you only have to list a couple of items, you may just use regular check boxes.