To read all comments associated with this story, please click here.
You can compile Lazarus to use GTK2.
oh, and Lazarus tries to copy the VCL and it really bugsme, they should have worked on a independent multiplatform style GUI like wxWidgets instead of trying to clone the VCL, don't get me wrong, VCL is the best productivity toolkit around for Win32 programing, but is not really designed to be multiplatform (no, Kylix doesn't count), it is more dessigned to work with the Windows API.
There is a project that is trying to make it possible:
http://sourceforge.net/projects/fpgui/
Edited 2007-09-10 17:24
That's correct. fpGUI doesn't try and be VCL compatible and talks directly to the underlying Windowing System. Which means any fpGUI based application has no dependencies on large 3rdParty libraries like GTK1 or GTK2 does. Which makes application deployment a breeze!
fpGUI now also has a Visual Form Designer to speed up your development.
Lazarus has years of experience of porting the VCL to GTK. It is suitable enough. The nice part is the ease that people can use the native widgetset (GDI,GTK,Carbon) to improve the (OS specific) behaviour of the app, and mix OS independant with dependant components.
This avoids a bit the "lowest common denomitor" problem that a portable widget set has.
RE[2]: How good is Lazarus/FPC?
> Delphi uses anchors for sizeable dialogs
Correct. It also has the "align" property, and has so since version 1. It is a bit unweildy (just as it can be with any resizable container that is aligned to a specific "area" of another container), but it's workable.
> .Net uses the same concept just with a different name ("dock").
Wrong. This is called "anchor" in dotNet. It works exactly as the Delphi version does too.
RE: How good is Lazarus/FPC?
The LCL and VCL gets around this with a feature called Anchors. The LCL's anchors are a lot more flexible (better) than Delphi's ones.
BTW: The fpGUI project also features Anchors and should have Layout Managers (like Java or Qt) real soon.





Member since:
2005-11-11
How good is Lazarus today? I was very interested in its development back in 2000-2002, partially because Kylix utterly failed. But then I learned C and GTK and kinda never looked back. I visited the Lazarus website from time to time, but their screenshots are severely outdated: they're still showing GTK 1 screenshots in 2007! This made me think that their development has halted or is very very slow.
Does the LCL still imitate the VCL or did they also add new things? The VCL is nice for mostly-fixed layout GUIs, but horrible for resizable dialogs because of the lack of sizers ala GTK and wxWidgets. Delphi 7 still suffers from this problem.
It's a shame to read that generics/template support is still in development. I think that any serious modern statically typed OO programming language should support generics/templates. Don't make me think back of the days when I had to write 3 different list classes just because I want to store different data types in it without requiring clients to cast return values.
Edited 2007-09-10 16:39