Icon Alignment |
Post Reply |
Author | |
TimG
Newbie Joined: 11 April 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
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.
|
|
TimG
Newbie Joined: 11 April 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
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.
|
|
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 |