Jump to content


Photo

MultiLine Header -> wrong alignment


  • Please log in to reply
1 reply to this topic

#1 qi130

qi130
  • Members
  • 23 posts

Posted 09 November 2007 - 04:11 PM

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... unsure.gif I don't know !!!Attached File  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.

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,196 posts
  • Gender:Male

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users