Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CXTPPropertyGridInplaceEdit ignores alignment!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridInplaceEdit ignores alignment!

 Post Reply Post Reply
Author
Message
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridInplaceEdit ignores alignment!
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2007 at 6:34am
Yes, thanks, we will change it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.218 seconds.