[Lazarus] Define for the used windgetset

Joost van der Sluis joost at cnoc.nl
Thu Dec 31 17:26:02 CET 2009


On Thu, 2009-12-31 at 14:35 +0100, Marc Weustink wrote:
> Joost van der Sluis 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?
> 
> In theory it is possible to compile the LCL independent of the used 
> widgetset. And it is possible to compile each widgetset separate. Only 
> at link time these are linked togehter. Till then it is unknown, so a 
> package extending the lcl should be able to handle that.

Didn't thought of that. But in case it's a design-time issue it could
work? I'll try the LCLnogui define as proposed by Matthias and Zeljko.

> What you can check at runtime is WidgetSet.LCLPlatform=lpNoGUI

Thanks,

Joost





More information about the Lazarus mailing list