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?
Joost.

Mailing lists / lazarus / 2009-12
5 messages · 4 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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?
Joost.
{$IFDEF LCLNoGui} is not available ?Is it possible to add some define which can be used to detect the current widgetset? It…
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.
What you can check at runtime is WidgetSet.LCLPlatform=lpNoGUI
Marc
Is it possible to add some define which can be used to detect the current widgetset? It…
Compile time:
{$IFDEF LCLnogui}
Run time:
uses interfacebase;
if WidgetSet.LCLPlatform=lpNoGUI thenMattias
In theory it is possible to compile the LCL independent of the used widgetset. And it is…
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