Print Page | Close Window

CXTPPropertyGridInplaceEdit ignores alignment!

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=8679
Printed Date: 25 November 2024 at 3:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGridInplaceEdit ignores alignment!
Posted By: brianh
Subject: CXTPPropertyGridInplaceEdit ignores alignment!
Date Posted: 06 November 2007 at 6:35am
Hi, I have a property grid with both text and numeric items, I align the text on the left and the numbers on the right by ORing the appropriate alignment flags with the GetValueMetrics()->m_uDrawTextFormat member. 
 
This works fine to display the items, but when an item is selected the in-place edit control ignores this setting and always displays the text left aligned!
 
I tried setting the edit style to ES_RIGHT by calling SetEditStyle() for each numeric item but this had no effect, and when I checked the source it specifically ignores all the alignment flags passed in this way!
 
Am I missing something or is there a bug in the code?
 
I'm currently using version 11.1.3.
 
Thanks.



Replies:
Posted By: Oleg
Date Posted: 06 November 2007 at 10:15am
Hello,
 
Indeed this flag ignored in CXTPPropertyGridInplaceEdit::Create. Pleae remove them from DWORD dwStyle and build library.


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


Posted By: brianh
Date Posted: 07 November 2007 at 5:07am
Ok Oleg, I've removed the ES_LEFT, ES_RIGHT and ES_CENTER styles from dwStyle and this now works as expected, I assume you will do the same for your next release?
 
Thanks.


Posted By: Oleg
Date Posted: 07 November 2007 at 6:34am
Yes, thanks, we will change it.

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



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