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 IAA07545; Thu, 10 Apr 2003 08:26:15 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA07514 for ; Thu, 10 Apr 2003 08:26:14 +0200 (MET DST) Received: from swordfish ([216.241.35.41]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h3A6QC925644 for ; Thu, 10 Apr 2003 08:26:13 +0200 (MET DST) Received: from matt by swordfish with local (Exim 3.35 #1 (Debian)) id 193VVh-00025H-00 for ; Thu, 10 Apr 2003 00:26:09 -0600 Date: Thu, 10 Apr 2003 00:26:09 -0600 From: Matt Gushee To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] LABLTK? Message-ID: <20030410062608.GA5289@swordfish> Reply-To: Matt Gushee Mail-Followup-To: caml-list@pauillac.inria.fr References: <20030410103403D.garrigue@kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030410103403D.garrigue@kurims.kyoto-u.ac.jp> User-Agent: Mutt/1.3.27i X-Spam: no; 0.00; gushee:01 mgushee:01 havenrock:01 caml-list:01 labltk:01 widget:01 englewood:01 manure:01 ignores:01 --lao:01 merel:01 toplevel:01 complex:03 wrote:03 wich:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Apr 10, 2003 at 12:07:39AM +0000, deerf hal wrote: > > 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. The usual way to make a child widget change size along with its parent is to use the 'expand' and 'fill' arguments to 'pack', e.g.: pack [c] ~expand:`Yes ~fill:`Both; It's a bit more complex with Grid, but you can still do it; I suppose there's a way to do it with Place, too, but I never use Place, so I can't tell you how. Or is there some reason that won't work for you? -- Matt Gushee When a nation follows the Way, Englewood, Colorado, USA Horses bear manure through mgushee@havenrock.com its fields; http://www.havenrock.com/ When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.) ------------------- 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