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: 24 May 2018 at 11:07pm


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 15.3.1, new Projects v 18.3.0
Platform: Windows 8.1 (64bit)
Language: VC++ 20



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

Solved it by myself...


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

Product: Xtreme Toolkit v 15.3.1, new Projects v 18.3.0
Platform: Windows 8.1 (64bit)
Language: VC++ 20


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 15.3.1, new Projects v 18.3.0
Platform: Windows 8.1 (64bit)
Language: VC++ 20



Print Page | Close Window