On 20 Dec 2000, at 9:50, Eike Lange wrote:
On Wed, Dec 20, 2000 at 04:31:09PM +1100, Prof. A Olowofoyeku (The African Chief) wrote: > On 15 Dec 2000, at 19:51, Nicola Girardi wrote: > > Eike and I are going to port Gtk to GPC; until now Eike has > > concentrated his efforts on Glib/Gdk, whose importance is in the > > fact that they underlie Gtk. Despite that, they can be used > > independently, as Eike pointed out. > Just for your information - the FreePascal people have a port of Gtk to > FreePascal. Perhaps you can use some of their code?
Yes, we know. The port is quite a bit different from our approach, so I do everything by my own and use the FPC-port as a reference (sometimes).
Is there anyone out there, who would like to port the original-delphi-classes (tm) (c) (r) (whatever) to gpc, using gtk?
I might be interested. I already have a working (and portable) port of the Delphi Sysutils unit (look on agnes, in /home/chief/), and I have a "sort of" clone of the Object Windows Library (OWL), but it only works on Win32 platforms. If the Gtk port is ready (and I can understand it - I have never used Gtk before, and I wouldn't even have any idea of how to do the easiest thing, e.g., create a window and add some controls to it), I might be able to start something. However, it is not possible to port the original Delphi units without support for "classes" in the GPC compiler. Classes are fundamental to the Delphi VCL, and GPC currently supports only the old BP objects. It might be easier to do something similar to the old OWL. But first things first. My suggestion is that, when you finish porting Gtk, please try and include some portable example applications. First, a simple one that just creates a window with a title bar and a system menu; then one that improves on that, and creates user defined menus and attaches functions to some menu choices; then one that adds a button and an edit control, etc., etc. (i.e., each example increases in complexity). That way, Gtk novices like me can have a reference point to start to do something.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku, PhD (The African Chief) Email: african_chief@bigfoot.com WWW: http://www.bigfoot.com/~african_chief