Print Page | Close Window

Black Backround in disabled combobox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=23636
Printed Date: 21 May 2024 at 1:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Black Backround in disabled combobox
Posted By: mgampi
Subject: Black Backround in disabled combobox
Date Posted: 03 May 2018 at 11:20am
Hi;

I created a control that is parent of other controls. One of the children is a combo box with style CBS_DROPDOWNLIST.
Whenever the control is disabled in a skinned application the background of the control is black:

 

When I remove my .\styles folder and restart the application the app is no longer skinned, but the combobox is drawn as expected.

How can I get the same result in the skinned app?
In this case I use Toolkit 18.3

TIA


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: mgampi
Date Posted: 08 May 2018 at 6:16am
Forget this post!

Solved it by myself...


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: olebed
Date Posted: 08 May 2018 at 8:22am
Hello Martin,

And what was the solution ?

Regards,
 Oleksandr Lebed


Posted By: mgampi
Date Posted: 08 May 2018 at 8:24am
The parent control catched the OnCtlColor() and set the color of the disabled (static) part of the combobox control to black!
Silly!!!

Martin


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net