TOPIC: Getting the Width and Height of a Canvas?
#1593
Getting the Width and Height of a Canvas? 10 Months, 2 Weeks ago
How can I get the width and height of a Canvas control?

Jeremy
 
 
#1606
Re:Getting the Width and Height of a Canvas? 10 Months, 2 Weeks ago
For native controls you can use:

GetWindowRect(control.Hwnd, r = Object())

or

GetClientRect(control.Hwnd, r = Object())

width will be r.right - r.left
height will be r.bottom - r.top

or control.GetRect() or control.GetClientRect() and use GetWidth() and GetHeight() on the Rect result

Note: Canvas has not been used much (we do not use it in any of our applications) so there may be issues.
 
 
andrew