Print Page | Close Window

CXTColorPicker and CPS_XT_SHOWEYEDROPPER style

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=16052
Printed Date: 24 June 2025 at 6:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTColorPicker and CPS_XT_SHOWEYEDROPPER style
Posted By: Fredrik
Subject: CXTColorPicker and CPS_XT_SHOWEYEDROPPER style
Date Posted: 21 January 2010 at 10:34am
I noticed that the color picker dialog had a CPS_XT_SHOWEYEDROPPER style which enabled a neat little color picker tool. How do I enable this for the "More colors" choice in the CXTColorPicker?

Perhaps line 879 in XTColorSelectorCtrl.cpp should be changed to:

m_pColorDlg = new CXTColorDialog(clrColor, clrColor,(dwPopup & (CPS_XT_SHOWHEXVALUE | CPS_XT_SHOW3DSELECTION | CPS_XT_SHOWEYEDROPPER )), GetParent());

?

Second question: I like to be able to select transparency in the same color picker popup - perhaps by adding a slider, edit field and a spinner in the popup. (I also wouldn't mind the same functionality in the color dialog.) Is this something planned for a release in the near future? If not, what would be the best solution to add a transparency slider in the color picker popup?



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