Currently working with a nextgrid where each header has MultiLine=true and Alignment=taCenter.
When caption doesn't contain crlf, it works fine. But when caption contains crlf, alignment is... I don't know !!!
header.jpeg 16.12KB
0 downloads
After trying to resize columns, it seems that the whole length of the caption (including the crlf characters ?) is used to compute left & right margins, not the longest line (?).
ie: to center "Coord. X" hearder (10 chars with crlf), the length used is 10, it should be 6 ("Coord.") (in fact the longest drawtext area due to proportional font)
Is that a bug ?
Regards.
MultiLine Header -> wrong alignment
Started by qi130, Nov 09 2007 04:11 PM
1 reply to this topic
#1
Posted 09 November 2007 - 04:11 PM
#2
Posted 11 November 2007 - 12:43 PM
Hello Qi,
I will work on it. I hope only that this is not a limitation of WinAPI DrawText procedure.
Best regards
I will work on it. I hope only that this is not a limitation of WinAPI DrawText procedure.
Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users