Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-08

fpGTK ???

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tiziano_mk

Found it in my current fpc installation sources:
C:\Programmi\FPC\fpcbuild_2.0.4_exp\fpcsrc\packages\extra\fpgtk

but no documentation at all, except the sources...

What is fpgtk?

in the fpgtk.pp source (unit FPgtk) I read:
// Generated with GtkWrite by Luk Vandelaer (version 1.08)

what is GtkWrite?

Could it be worth the effort to port this package on GTK2? (so to have it working on Windows too)

tiziano

Reply by email

Michael Van Canneyt
to Tiziano_mk
Tiziano_mk wrote 8 lines
Found it in my current fpc installation sources: C:\Programmi\FPC\fpcbuild_2.0.4_exp\fpcsrc\packages\extra\fpgtk but no documentation at all, except the sources... What is fpgtk?

A simple OOP wrapper around gtk 1.2, which makes it easier to use GTK for a pascal programmer.

There is no documentation, unfortunately, but the usage should be clear to any Delphi user. There are some sample programs, and the fpde (fpdoc editor) program is written using these components before it was ported to Lazarus.

in the fpgtk.pp source (unit FPgtk) I read: // Generated with GtkWrite by Luk Vandelaer (version 1.08) what is GtkWrite?

A small program that was used to automatically generate all the files: it reads some description files, and then generates the units. The sources for this program are available too.

Could it be worth the effort to port this package on GTK2? (so to have it working on Windows too)

It should not be hard to do, I think. All that is required is to modify the description files.

Michael.

Reply by email

Tiziano_mk
to Michael Van Canneyt
Michael Van Canneyt wrote 11 lines
On Wed, 29 Aug 2007, Tiziano_mk wrote: > > What is fpgtk? A simple OOP wrapper around gtk 1.2, which makes it easier to use GTK for a pascal programmer. There is no documentation, unfortunately, but the usage should be clear to any Delphi user. There are some sample programs, and

I supposed that. In fact, reading the sources one can get an idea and answer himself to the first question... :-)

Show quoted text 5 lines
> what is GtkWrite? A small program that was used to automatically generate all the files: it reads some description files, and then generates the units. The sources for this program are available too.

I also supposed that, but I didn't find any source named gtkwrite*.* Mmmh, Now I can see a method named gtk.write in the program PGtk!!!

Maybe the small program is Pgtk (and it uses the objectdef unit)?

Show quoted text 5 lines
> Could it be worth the effort to port this package on GTK2? > (so to have it working on Windows too) It should not be hard to do, I think. All that is required is to modify the description files.

Yes, I tryied and was able to run a part of the demo, but I was making changes to the fpgtk.pp source... now, the syntax of the fpgtk.def seems to me more hostile than the source file. What is it?

Ok, all was in front of my eyes, thanks by now, I'm going to meditate further about that...

tiziano

Reply by email