Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Icon Alignment
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icon Alignment

 Post Reply Post Reply
Author
Message
TimG View Drop Down
Newbie
Newbie


Joined: 11 April 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote TimG Quote  Post ReplyReply Direct Link To This Post Topic: Icon Alignment
    Posted: 07 June 2007 at 3:50am
Can anyone tell me how I can change the icon alignment of the items in a column. I can't find the right function to do this?
 
I've also tried overloading GetItemMetrics and setting xtpGroupRowIconAfterText, but this doesn't affext the position of the icon.
Back to Top
TimG View Drop Down
Newbie
Newbie


Joined: 11 April 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote TimG Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2007 at 5:05am

I found the solution to my  problem by accident:

If you wan't the icon for an entire column to be centered you have to call the SetAlignment function for this column passing the alignment value "xtpColumnIconCenter".

However the value can not be found in the documentation, i was just lucky to try this?

This is what the doucmentation says for the alignment parameter of the SetAlignment method:
nAlignment
New alignment value. Possible alignment values: DT_LEFT, DT_CENTER, DT_RIGHT and DT_WORDBREAK. See also DrawText() Format Flags.
 
 

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.156 seconds.