Re: Problem with GBin.frame
imedul <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Thank you very much for your answer.
It was quite interesting, but it doesn't fully run on my PC. Only the height
parameter is good, not the width. Version problem ? %-|
finally, I solve the problem by using the GPack.fixed object allowing to put
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 :
Thanks again for your help.
let _ =
let window = GWindow.window
~width:480
~height:320
~title:"Fenêtre" () in
window#connect#destroy GMain.quit;
(* Then add a box so we can pack multiple widgets into the window. *)
let container = GPack.vbox ~packing:window#add () in
let zone = GPack.fixed ~packing:container#add () in
let parCylindre = GBin.frame
~label:" Paramètres du cylindre "
~width:200
~height:80
~packing:(zone#put ~x:30 ~y:50) () in
let frame = 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
http://www.nabble.com/file/p17737962/test2.jpg
--
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.