Hi,<br><br>I found that on Windows platform, Canvas size may mismatch with control's size. See the following code:<br><br>procedure TForm1.FormPaint(Sender: TObject);<br>begin<br> Caption := Format('Form=%d:%d, Canvas=%d:%d', [Width, Height, Canvas.Width, Canvas.Height]);<br>
end;<br><br>Run this code on Windows, I found that when the form is enlarged, the 2 sizes matches, but when the form shrinks Canvas' size is always the largest value it has been.<br><br>-- <br><img src="http://fxronline.info/xrfang.png"><br>
<br>