[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing gui component


No not at all.

This was a program written 9 years ago and forgotten about that was
explicitly set to use gb.gtk
Now the user has a system that does not have gtk2 so his gambas install did
not include a gb.gtk component, only gb.gtk3

That's why it's never a good idea to explicitly set a particular gui
toolkit for a program meant for the public domain as you do not know what
toolkits the user may have.
It is always best to use gb.gui to automatically select the available
system toolkit. (or gb.gui.qt to force automatic qt4/qt5/qt6 library
switching)

Respects
BruceS


On Sat, 15 Aug 2026 at 15:40, Kevin Ritch <kevin@xxxxxxxxx> wrote:

> Does this mean that any programs built before the new release will fail in
> the field and cause a Chareback on people's Bank Accounts by buyers?
>
> -------------------------------------- Please tell me that it ain't so.
>
> On 2026-08-15 2:27 pm, Bruce Steers wrote:
>
> A user on my forum just had an error trying to get a program to compile
> that he made 9 years ago.
>
> The problem was the program was set to explicitly use gb.gtk but his new
> system did not support gtk2.
>
> I post this mail because of his error message that was something like
> "cannot find Frame"
>
> It basically failed to find any controls and gave that error.
>
> Shouldn't it fail with a message about gb.gtk component not being found?
>
> Can the compiler/ide detect and give an error message if the toolkit is
> explicitly chosen (not a gui switcher) but the system is missing that
> toolkit?
>
> Respects
> BruceS
>
>

Follow-Ups:
Re: Missing gui componentKevin Ritch <kevin@xxxxxxxxx>
References:
Missing gui componentBruce Steers <bsteers4@xxxxxxxxx>
Re: Missing gui componentKevin Ritch <kevin@xxxxxxxxx>