[Lazarus] Lazarus implementation of TListView etc?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Oct 21 17:14:40 CEST 2015


On 2015-10-21 12:42, Bo Berglund wrote:
> With LCL added it does work!

I'm with Michael Schnell on this one - that is a terrible idea. So too
is the LCL-NoGUI hack.

I would instead implement a Mock TListView class that implements the
most basic interface your unit requires, but doesn't really do anything
- and don't include any LCL dependency. That would be my first step to
"I just want it to compile".

Then refactor / clean-up the code to remove such "gui" dependencies if
you want a true console application. Windows always has a GUI - so there
you can get away with including GUI units, widgets or clipboard in your
"console" application. But for Unix-based systems that have true
headless environments, you *must* create a true console application,
otherwise the application will not run.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp




More information about the Lazarus mailing list