![]() |
ComboBox issues |
Post Reply ![]() |
Author | |
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 921 |
![]() ![]() ![]() ![]() ![]() Posted: 17 April 2025 at 2:21pm |
So I have encountered another issue with ComboBox. This one is odd. We supply images for the combobox which are dark. When I am running without our skin applied and have a dialog up that has a normal ComboBox on it and then I apply the skin all the windows update. But the ComboBox doesn't appear correctly. If I apply the skin and then bring up the same dialog, the combobox looks fine. The ComboBox that is on a dialog when I apply the skin appears to be a combination (yeah) of skinned and unskinned. The outline and drop arrow are skinned but the rest is not. I gave up trying to determine why it happens. For now I resorted to adding code to destroy the current comboboxes when a dialog is present with any and recreating them. The newly created comboboxes look just fine. I see the same issue for any combobox on any dialog. Fortunately we don't have many but we do have a few dialogs we create one time. I added code to handle WM_SYSCOLORCHANGE and if we have our skin running I recreate the comboboxes when that call arrives. I tried to find one of the CJ skin samples that have comoboxes and a skin that changes them but I didn't find any. The drop box always works fine, by the way. For reference here is our dialog where the user can choose one of CJ's Office 2016 color themes. Our "Dark" is the "black" theme and we also load our dark skin. See the "Application color scheme" combobox. It looks correct. So does the "Steering Wheel .." combo box below it with "Extra Large" text. ![]() Here is the same dialog when we are not using the skin. ![]() And here is the same dialog after I switch the Application color theme to Dark which applies the skin while the dialog is still visible. ![]() The ComboBox with "Dark" in it has the selected color we use all across the dialog. Dismissing the dialog and bringing it back up with Dark already set is what we want to see which is what the first image shows.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |