To: jspies at sun.ac.za Cc: lablgtk at kaba.or.jp Subject: Re: Catching a signal from combo field In-Reply-To: <20020611151951.GA23882 at adept.co.za> References: <20020611151951.GA23882 at adept.co.za> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020612092458A.garrigue at kurims.kyoto-u.ac.jp> Date: Wed, 12 Jun 2002 09:24:58 +0900 From: Jacques Garrigue Lines: 24 From: Johann Spies > I have two fields: combo1(a combo field) and dns (GTKentry). I want > to use the value selected in combo1 to be used in association with a > tuplelist (tlys) to determine the value of dns. I am not sure of what you are trying to do, in particular your mail does not include the code you are compiling. However here is some way to track changes on a combo box: # let w = GWindow.window ~show:true ();; val w : GWindow.window = # let c = GEdit.combo ~popdown_strings:["A";"B";"C"] ~packing:w#add ();; val c : GEdit.combo = # c#entry#connect#changed (fun () -> prerr_endline c#entry#text);; - : GtkSignal.id = By the way, this is precisely because using box signals on a combobox is meaningless that the lablgtk combobox is not a box. Hope this helps, Jacques