Forum > Graphics

TCanvas.width/height not working?


When accessing TCanvas' width and height properties I never get the actual width and height.
I've seen a  bugtracker record for this that seems related to this.
Should the canvas properties Width and Height give correct results?
Or is this a 1.0 feature?

That issue is not related. (it's about the existence of the with/height)

Do you have any code sample on how you use them and what you expect ?

Martin V:
You can use ClientHeight/ClientWidth in Controls and Printer.PageHeight/Printer.PageWidth instead. I've deleted Canvas.Width/Height in my code, so it seems that this is not correctly implemented. You can make a sample program and report it in the bugtracker.



[0] Message Index

Go to full version