Print Page | Close Window

Icon Alignment

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=7321
Printed Date: 22 November 2024 at 8:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icon Alignment
Posted By: TimG
Subject: Icon Alignment
Date 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.



Replies:
Posted By: TimG
Date 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.
 
 




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