gtk

Sergio A. Kessler sak at perio.unlp.edu.ar
Fri Apr 30 14:01:32 EDT 1999


"Michael A. Hess" <mhess at miraclec.com> el día Fri, 30 Apr 1999 11:10:53 
-0400, escribió:

>Cliff Baeseman wrote:
>> 
>> No I think the library should be available but it does not have to be
>> packaged with the fcl.
>
>Agreed, Free Pascal and the FCL should not be tied to a library, API, or
>whatever you want to call it.

exactly !

>> Our library is very FCL dependant but the visual component should be
>> swapable in lazarus between gui tool kits.  I intend to  move towards
>> a swapable component library in lazarus. My intent is
>> that lazarus does not care about the component library. Our ide is
>> built from our GTK library but I do not wish to preclude the use of
>> other other toolkits.
>
>Excellent! That is what I was eluding to. At this point it is tied more
>to GTK but once the IDE is finished and we have something to work with
>we can generalize the components. Right now the IDE is the thing. :-)

this is also my point ! (I'm so bad explaining things ? :)

I will try again:

Suppose you want to implement the ShowMessage function that is in
dialogs unit.
And you want implemented in win32 and linux/gtk and linux/qt.
Then you create a dialogs.pp in the fcl/win32 directory and
implement ShowMessage using the win32 api, you do the same in 
fcl/linux/gtk (or should be just fcl/gtk ??) but using the 
gtk api, the same with fcl/linux/qt ...

My *only* difference with Lazarus is _very_ minimal and is only
where the archives resides, just that. I think that stdcontrols
and controls for example should be in fcl/linux/gtk.
I don't think that a relocation of some archives slowdown the
Lazarus project, all the contrary.

*Someone* interested in Lazarus for win32, just have to implement
what is in fcl/linux/gtk in fcl/win32, recompile Lazarus and voilé,
Lazarus for win32.
This also prevent working with a library full of ifdefs wich
is a mess as Nico pointed out.

sound too bad ?

Sergio






More information about the Lazarus mailing list