On Thu, 31 Dec 2009 12:51:17 +0100
Joost van der Sluis <[email protected]> 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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to