CXTPPropertyGridInplaceEdit ignores alignment! |
Post Reply |
Author | |
brianh
Groupie Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
Post Options
Thanks(0)
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Indeed this flag ignored in CXTPPropertyGridInplaceEdit::Create. Pleae remove them from DWORD dwStyle and build library.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
brianh
Groupie Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Yes, thanks, we will change it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |