Print Page | Close Window

HOWTO set default CXTPPropertyGridItemColor color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=13301
Printed Date: 22 September 2024 at 1:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HOWTO set default CXTPPropertyGridItemColor color
Posted By: mgampi
Subject: HOWTO set default CXTPPropertyGridItemColor color
Date Posted: 01 February 2009 at 6:20pm
Hi;
How can I set the default color used in popup color selector of CXTPPropertyGridItemColor items?


-------------
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: Oleg
Date Posted: 02 February 2009 at 4:00am
Hi,
 
Call pItem->SetDefaultValue(..) with string representation of default color.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mgampi
Date Posted: 02 February 2009 at 5:12am
Hi Oleg;

I suggest to add an additional parameter to the ctor of the class. This would be much easier. Suppose you change the internal string representation of the format. In this case I have to replace all occurences of SetDefaultValue(...). Thats annoying and error-prone!


-------------
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