![]() |
Report Control - DrawGlyph not centering |
Post Reply
|
| Author | |
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Topic: Report Control - DrawGlyph not centeringPosted: 18 January 2006 at 10:05am |
|
Refering to this image:
The checkboxes in my report control are drawing horizontally left-aligned, instead of horizontally centered, even when I have specified: pColumn->SetAlignment(DT_CENTER); I believe the issue is in: int CXTPReportPaintManager::DrawGlyph(CDC* pDC, CRect rcColumn, int iIcon) in the lines: POINT ptIcon; ptIcon.x = rcColumn.left + 1; ptIcon.y = rcColumn.top + (szColumn.cy - szImage.cy) /2; I checked the Report Control sample, and the vertical centering works fine. Mabe the best solution would be to check the SetAlignment flag, if that's not too much work ?!? Thanks Warren P.S. Obviously this is not a critical bug - but it would be nice to have it fixed at some point. |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 January 2006 at 12:52pm |
|
Hi Warren,
Thanks for your notes, we've already reviewed this piece of functionality for the next version of the toolkit. Alignment flag will be a binary combination of the following flags for setting text and icon alignments independently:
We suppose that would be enough for a flexible customization. -- WBR, Serge |
|
![]() |
|
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 January 2006 at 12:59pm |
|
Yes, that looks good to me.
Warren |
|
![]() |
|
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 |