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: 21 November 2024 at 11:41pm
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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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