From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id DAA02852; Thu, 10 Apr 2003 03:34:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA02778 for ; Thu, 10 Apr 2003 03:34:05 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h3A1Y3X29366 for ; Thu, 10 Apr 2003 03:34:03 +0200 (MET DST) Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3p2/3.7W) with ESMTP id KAA27722; Thu, 10 Apr 2003 10:33:55 +0900 (JST) To: halnaf@hotmail.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] LABLTK? In-Reply-To: References: X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20030410103403D.garrigue@kurims.kyoto-u.ac.jp> Date: Thu, 10 Apr 2003 10:34:03 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) X-Spam: no; 0.00; jacques:01 caml-list:01 labltk:01 resize:01 dynamically:01 garrigue:01 toplevel:01 width:98 height:98 configure:02 wich:03 variable:03 canvas:04 kurims:06 function:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 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