Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] LABLTK?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] LABLTK?
From: "deerf hal" <halnaf@hotmail.com>

> i use a canvas, in a toplevel, but i decide to rezise the canvas when i 
> rezise the main window (toplevel).
> i found a solution with xview and yview function to know the size of the 
> toplevel, and i use the canvas as a global variable, wich i destroy and then 
> i give to the global variable a new canvas with a good size.

You don't have to destroy the canvas: you can use
[Canvas.configure canvas ~width ~height] to resize it dynamically.

Jacques Garrigue

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners