[Gambas-user] How to determine whether a program uses GTK or QT?
benoit.minisini at gambas-basic.org
Fri Sep 23 21:50:36 CEST 2022
Le 23/09/2022 à 21:49, Benoit Minisini a écrit :
> Le 23/09/2022 à 21:27, Martin a écrit :
>> 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
>> If Application.DarkTheme Then
>> Print "Hi Anakin"
>> Print "Hi Obi-Wan"
>> 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.
> You can use:
> If Component.IsLoaded("gb.gtk3") Then
> And so on...
> I'd like to know which OpenGL methods do not work in GTK+3 (or the
> contrary). Please report!
To get the list of components used by a running project, you have to
browse the 'Components' class. Look at the documentation on the wiki.
More information about the User