To: jspies at sun.ac.za Cc: lablgtk at kaba.or.jp Subject: Re: Catching a signal from combo field In-Reply-To: <20020612114148.GG30062 at adept.co.za> References: <20020611151951.GA23882 at adept.co.za> <20020612092458A.garrigue@kurims.kyoto-u.ac.jp> <20020612114148.GG30062@adept.co.za> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020612212802C.garrigue at kurims.kyoto-u.ac.jp> Date: Wed, 12 Jun 2002 21:28:02 +0900 From: Jacques Garrigue Lines: 35 From: Johann Spies > I am using glade in combination with mlglade which produces three > files: > > gtknw_glade_callbacks.ml > gtknw_glade_interface.ml > gtknw_glade_main.ml > > In *main.ml I have the opportunity to define reaction on callbacks > which will override the callbacks in gtknw_glade_callbacks.ml: > > inherit Gtknw_glade_callbacks.default_callbacks Then I would need all these files to understand what is happening. > I might try to work without glade, but I could so far not find a > proper tutorial on Lablgtk. The Glade - mlglade combination at least > provide me with a platform to work from and do something useful while > I try and figure out what is going on in the code. Look at the examples. Start with the short ones, and progress gradually to some more involved ones. There is even a combo example. You may also choose to use lablgladecc, which is a bit less involved conceptually: no inheritance, you just get the objects and connect callbacks by hand. It should be compatible, as it works on the same glade xml output. In any case, look at the code, even generated one, it will tell you how to write your own programs. Jacques