newLISP Fan Club

Forum => newLISP Graphics & Sound => Topic started by: didi on July 08, 2007, 07:47:13 AM

Title: Drawing on a canvas
Post by: didi on July 08, 2007, 07:47:13 AM
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 ?
Title:
Post by: Lutz on July 08, 2007, 02:37:34 PM
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