<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/a8c64fe5ec177d6791c860d364c0021f"
  from="Matt Gushee &lt;mgushee@h...&gt;"
  author="Matt Gushee"
  date="2003-10-22T15:21:53"
  subject="Re: [Caml-list] LABLTK?"
  prev="2003/10/865d716a1499fe5a9cc13f60e84a8a3e"
  next="2003/10/e051e894779e1d750dc514438ac003da"
  prev-in-thread="2003/04/531101e91b0653b8c5a8112f13f96d87"
  prev-thread="2003/04/8513b371727d84376ee43c7f19c4469d"
  next-thread="2003/04/5c5959c5e7b983ab216e897ac4a71c0b"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] LABLTK? ">
<msg 
  url="2003/04/91483f12aed1b550d94219a3b1dd6e28"
  from="deerf hal &lt;halnaf@h...&gt;"
  author="deerf hal"
  date="2003-04-10T00:07:44"
  subject="[Caml-list] LABLTK? ">
<msg 
  url="2003/04/e1b1f9614fa1d6a99fc29e95a37c1c9c"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2003-04-10T01:34:06"
  subject="Re: [Caml-list] LABLTK? ">
</msg>
<msg 
  url="2003/04/531101e91b0653b8c5a8112f13f96d87"
  from="Matt Gushee &lt;mgushee@h...&gt;"
  author="Matt Gushee"
  date="2003-04-10T06:26:15"
  subject="Re: [Caml-list] LABLTK?">
</msg>
<msg 
  url="2003/10/a8c64fe5ec177d6791c860d364c0021f"
  from="Matt Gushee &lt;mgushee@h...&gt;"
  author="Matt Gushee"
  date="2003-10-22T15:21:53"
  subject="Re: [Caml-list] LABLTK?">
</msg>
</msg>
</thread>

<contents>
On Thu, Apr 10, 2003 at 12:07:39AM +0000, deerf hal wrote:
&gt; 
&gt; i use a canvas, in a toplevel, but i decide to rezise the canvas when i 
&gt; rezise the main window (toplevel).
&gt; i found a solution with xview and yview function to know the size of the 
&gt; toplevel, and i use the canvas as a global variable, wich i destroy and 
&gt; 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

</contents>

</message>

