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 RAA07905; Wed, 22 Oct 2003 17:21:53 +0200 (MET DST) 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 RAA30998 for ; Wed, 22 Oct 2003 17:21:52 +0200 (MET DST) Received: from smtp-ft4.fr.colt.net (smtp-ft4.fr.colt.net [213.41.78.203]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9MFLp128829 for ; Wed, 22 Oct 2003 17:21:51 +0200 (MET DST) Received: from tahiti (host.194.193.23.62.rev.coltfrance.com [62.23.193.194]) by smtp-ft4.fr.colt.net with ESMTP id h9MFLoH25487 for ; Wed, 22 Oct 2003 17:21:50 +0200 Date: Wed, 22 Oct 2003 17:21:49 +0200 From: Matt Gushee Subject: Re: [Caml-list] LABLTK? 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 X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f To: caml-list@pauillac.inria.fr Message-ID: 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: User-Agent: Opera7.20/Win32 M2 build 3144 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 Organization: MIRIAD Technologies X-Loop: caml-list@inria.fr X-Spam: no; 0.00; gushee:01 mgushee:01 havenrock:01 caml-list:01 labltk:01 widget:01 gushee:01 englewood:01 manure:01 mgushee:01 havenrock:01 ignores:01 --lao:01 merel:01 bug:01 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 ------------------- 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