[Gambas-user] How to determine whether a program uses GTK or QT?
Bruce Steers
bsteers4 at gmail.com
Sat Sep 24 13:47:21 CEST 2022
Either search through the loaded components or the an easy way is..
Print Env["GB_GUI"]
If gb.gui is being used the env is filled with gb.gtk or gb.qt5 or whatever
is being used.
BruceS
On Fri, 23 Sep 2022, 20:46 Martin, <mbelmonte at belmotek.net> wrote:
> Hello.
> Can anyone tell me how to know at runtime which component a program uses?
> I'm looking for a similar way to know if the desktop theme is dark or not.
> Ex:
> If Application.DarkTheme Then
> Print "Hi Anakin"
> Else
> Print "Hi Obi-Wan"
> Endif
>
> Note: There are some calls (I don't know if it's the right term) to
> OpenGL that don't work in GTK3 while in QT5 they do. So I want to get
> around what doesn't work when the program runs using the GTK3 component.
>
> Thanks.
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220924/de37c5b1/attachment.htm>
More information about the User
mailing list