Delivered-To: lablgtk at yquem.inria.fr Message-ID: <17737962.post at talk.nabble.com> Date: Mon, 9 Jun 2008 10:38:33 -0700 (PDT) From: imedul To: lablgtk at yquem.inria.fr Subject: Re: [Lablgtk] Problem with GBin.frame In-Reply-To: <1213004806.20521.11.camel at edouard-laptop> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable References: <17665252.post at talk.nabble.com> <1213004806.20521.11.camel@edouard-laptop> Content-Type: text/plain; charset=UTF-8 Content-Length: 1608 Hello, Thank you very much for your answer. It was quite interesting, but it doesn't fully run on my PC. Only the heigh= t parameter is good, not the width. Version problem ? %-| finally, I solve the problem by using the GPack.fixed object allowing to pu= t an child object to a specific point. And by the way, the width and heigth GBin. frame's parameter are understood= . Hereby the code (I reused part of your former code, but I reduced a bit the window size), and the results picture :=20 Thanks again for your help. let _ =3D let window =3D GWindow.window ~width:480 ~height:320 ~title:"Fen=C3=AAtre" () in window#connect#destroy GMain.quit; (* Then add a box so we can pack multiple widgets into the window. *) let container =3D GPack.vbox ~packing:window#add () in let zone =3D GPack.fixed ~packing:container#add () in let parCylindre =3D GBin.frame ~label:" Param=C3=A8tres du cylindre " ~width:200 ~height:80 ~packing:(zone#put ~x:30 ~y:50) () in let frame =3D GBin.frame ~label:" Nombre de Reynolds " ~width:160 ~height:230 ~packing:(zone#put ~x:280 ~y:80) () in window#show (); GMain.main (); http://www.nabble.com/file/p17737962/test1.jpg=20 http://www.nabble.com/file/p17737962/test2.jpg=20 =20 --=20 View this message in context: http://www.nabble.com/Problem-with-GBin.frame= -tp17665252p17737962.html Sent from the Lablgtk - France mailing list archive at Nabble.com. _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk