[Gambas-user] how to detect compilation runtime componets available?
Bruce Steers
bsteers4 at gmail.com
Thu Apr 1 19:11:21 CEST 2021
Something like this will work..
*Public Sub GetGUI() As String*
*Dim GUIs As String[] = ["gb.gtk", "gb.gtk3", "gb.qt4", "gb.qt5"]*
*For Each gui As String In GUIs*
* if Component.IsLoaded(gui) then Return gui*
*Next*
*Return "wayland"*
*End*
Something like that
BruceS
On Thu, 1 Apr 2021 at 16:44, PICCORO McKAY Lenz <mckaygerhard at gmail.com>
wrote:
> how to detect compilation runtime components available?
>
> by example try to detect if gb.gui are loaded or used or compiled in
> the project/app and if true, then try to use some gui things.. if not
> just use console only..
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210401/30ad7493/attachment-0001.htm>
More information about the User
mailing list