Date: Sat, 17 Nov 2001 14:42:50 +0200 From: Johann Spies To: lablgtk at kaba.or.jp Subject: Newbie questions Message-ID: <20011117144250.A1001 at adept.co.za> Mail-Followup-To: Johann Spies , lablgtk@kaba.or.jp Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: Johann Spies I am trying to work through the libgtk tutorial. I is not so easy to know what the lablgtk equivalents for the c-examples are. Trying to figure out the Ocaml equivalent for the "Hello World 2" example in the tutorial I get the following error which does not make sense to me: js-12:52:07-~$lablgtk -labels Objective Caml version 3.02 # open GMain ;; # let window = GWindow.window ~border_width: 100 ();; val window : GWindow.window = # let box1 = GPack.hbox ~packing: window#add ();; val box1 : GPack.box = # let button = GButton.button ~label:"Hello World" # ~packing: box1#add ();; val button : GButton.button = # let button2 = Gbutton.button ~label: "Nog een" # ~packing: box1#add();; Unbound value Gbutton.button Why this error? How do I add a second button to box1? BTW is there some sort of Lablgtk tutorial somewhere? It is real hard to start out with this stuff with no real explanations to work from. Regards. Johann. -- J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4036(w) Posbus 4668, Tygervallei 7536 "And we know that all things work together for good to them that love God, to them who are the called according to his purpose." Romans 8:28