[Gambas-user] Loading GUI component as runtime
T Lee Davidson
t.lee.davidson at gmail.com
Fri May 22 22:48:04 CEST 2020
On 5/22/20 3:34 PM, Brian G wrote:
> I would like to load the GUI component at run time if needed
>
> I Can
> component.load("gb.data")
>
> Dim id As Object = classes["List"].new()
> id.append("hello")
> id.append("fat")
>
> For Each s As String In id
> Print s
> Next
>
> This type of component works fine but when i do
> component.load("gb.gui")
>
> it always returns an error
>
> gb.gui: error: cannot load component 'gb.qt5' or sometimes 'gb.gtk3' depending if i test from ide or standalone
> Can anyone help me get this to work correctly? Am I doing something wrong?
>
> Thank You
> Brian G
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
The documentation for gb.qt5 is the same as that for gb.qt4. And, both gb.qt4 and gb.gtk3 require gb.image. You may need to load
that first.
--
Lee
More information about the User
mailing list