Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-04-10 (01:34)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] LABLTK?
From: "deerf hal" <>

> 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 Archives:
Bug reports: FAQ:
Beginner's list: