[Gambas-user] Loading GUI component as runtime

Bruce adamnt42 at gmail.com
Sat May 23 04:28:55 CEST 2020


When are you trying to load it? It must be done as early as possible so 
the gui components can initialise the forms and controls. But then 
perhaps it is not possible to get gui components loaded early enough as 
could be indicated by the "already failed" error.
I tried to do something similar to this some years ago in order to let 
the user choose which gui to use. Benoit told me at that time that it 
couldn't be done. I can't remember what I was trying nor what the reason 
was.
hth
b

On 23/5/20 5:04 am, 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 ]----
> 


More information about the User mailing list