[Gambas-user] Loading GUI component as runtime

brian at westwoodsvcs.com brian at westwoodsvcs.com
Sat May 23 16:45:30 CEST 2020


Perhaps Benoit could please comment on this?
It would really be appreciated!
--
Thanks
Brian Friday, 22 May 2020, 07:28PM -07:00 from Bruce  adamnt42 at gmail.com :

>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 ]----
>
>
>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200523/0acf1cd4/attachment.html>


More information about the User mailing list