Drawing on a canvas

Started by didi, July 08, 2007, 07:47:13 AM

Previous topic - Next topic

didi

How can i get the visible size of a canvas ?



The coordinate of the upper left is  X=0  Y=0  . What are the coordinates of the  lower right ?



It seems, that the lower y-coordinate is slightly smaller than the initialized y-value.

If the frame is 'default' , it is resizeable . If i  pull the window bigger the canvas is redrawn and i see elements  i didn't see at first . So Is the virtual  canvas-size endless ?

Lutz

#1
QuoteSo Is the virtual canvas-size endless ?


as long as you don't specify a size for the canvas it will fill whatever space the host container and the layout manager of the host container allows it to fill. So, yes in this case its practically endless.



Lutz