Date: Tue, 11 Jun 2002 17:19:51 +0200 From: Johann Spies To: lablgtk at kaba.or.jp Subject: Catching a signal from combo field Message-ID: <20020611151951.GA23882 at adept.co.za> Mail-Followup-To: Johann Spies , lablgtk at kaba.or.jp Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: 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. Using the signal "add" on combo1 like this: -------------------------------------------------- method on_combo1_add () = let s = self#top_window1 in let server = s#combo1#entry#text in print_string server; print_newline(); (* This line for debugging *) s#dns#set_text (List.assoc server tlys) ---------------------------------------------------- Which results in ------------------------------------- ocamlc -c -labels -I +lablgtk -I /usr/lib/ocaml/pcre gtknw_glade_interface.ml File "gtknw_glade_interface.ml", line 382, characters 9-15: This expression has type GEdit.combo It has no method connect --------------------------------------------- I am not sure how to do it. Must I rather get the signal from the associated entry field (combined with combo1) or use another signal form combo1? Which signal? I have tried so far: activate (entry) "add" (combo), "insert_text" (entry), "changed" (entry) without any success. I would really appreciate some help. Regards Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "Then said Jesus, Father, forgive them; for they know not what they do..." Luke 23:34