Print Page | Close Window

CXTColorSelectorCtrl - ColorComboBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1539
Printed Date: 08 May 2024 at 3:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTColorSelectorCtrl - ColorComboBox
Posted By: hubba09
Subject: CXTColorSelectorCtrl - ColorComboBox
Date Posted: 16 December 2004 at 7:47am

Hi

I'm currently developing a color picker combo box controller and I intend to have it work and look similar to the sample provided with XTools. The idea was to implement some
class CColorComboBox: public CComboBox
and create the CTXColorSelectorCtrl on DoDropDown on the ComboBox object.

I seem to have some trouble in working out how to implement this correctly. I'm using the CTXColorSelectorCtrl for this purpose. I'm able to display the color picker dialog, but it seems to be disabeled. It pops up, but its not posible to use it at all.

I create the CTXColorSelectorCtrl object by running the create method:
m_pColorSelector->Create(rect, pParent, CPS_XT_NOFILL | CPS_XT_EXTENDED | CPS_XT_MORECOLORS, colorref);

I guess maybe I have to set some other properties to make it work?
I have tried to use the sample code, but I really do need some more helpe!

 

 




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