[Lazarus] Define for the used windgetset

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Dec 31 15:58:01 CET 2009


On Thu, 31 Dec 2009 12:51:17 +0100
Joost van der Sluis <joost at cnoc.nl> wrote:

> Hi all,
> 
> Is it possible to add some define which can be used to detect the
> current widgetset? It would be usefull in a package to detect if the
> 'nogui' widgetset is used. But as it is now I see no way to do so?

Compile time:
{$IFDEF LCLnogui}

Run time:
uses interfacebase;

if WidgetSet.LCLPlatform=lpNoGUI then


Mattias




More information about the Lazarus mailing list