Misleading documentation of X/Y parameter of TCanvas.TextRect
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
The current documentation of TCanvas.TextRect says:
"Writes Text string within a specified rectangle, according to predefined Style". And: "X, Y specify the starting point for writing the &LtPos;var>Text&LtPos;/var> within the rectangle".
As I learned when working with another bug report (#27363 (closed)) this is not true in general: the x/y coordinates are respected only for top/left-aligned text. For other alignments/layouts the text position is defined only by the rectangle, not by x/y any more.
The attached patch clarifies this in the Lazarus documentation of graphics.xml.
Additional information:
I wonder why the "Arguments" section shows up twice in the generated html and chm file.
Mantis conversion info:
- Mantis ID: 27379
- Version: 1.5 (SVN)
- Fixed in version: 1.5 (SVN)
- Fixed in revision: 47566 (#7e93d299)
- Target version: 1.4