[Gambas-user] Making an app gtk/qt switchable
adamnt42 at gmail.com
Sat Nov 14 21:37:29 CET 2020
On 15/11/20 6:04 am, Bruce Steers wrote:
> Greetings all.
> I'm trying to set an arg/option in my app to choose gui system.
> I've added an arg --gui with options gtk gtk3 qt4 or qt5.
> It has a Startup.module before FMain where the arg is read
> Env["GB_GUI"] = "gb." & LCase(sGuiArg)
> But it don't work :(
> so i thought i could use Component.Load("gb." & LCase(sGuiArg))
> which i guess i could if i could remove the default bg.gui component in the
> IDE but i can't, gotta have one of them.
> Loading the component gives a segmentation 11 fault.
> And there does not seem to be a Component.Unload() option.
> I'm out of ideas...
> Is it even possible to do?
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
(Answered several times earlier - search the archives)
More information about the User