Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 32
Joined: Sat Jun 16, 2018 10:30 pm

[To be deleted] create a gadget after a window opening

by Niffo Thu Oct 25, 2018 8:26 am

It is not possible to create a gadget after a window opening, even with a "UseGadgetList()".
In the example below, the second CanvasGadget is not created/visible(?) unless you comment the OpenWindow(1)/CloseWindow(1)

Code: Select all
OpenWindow(0, 100, 100, 300, 200, "CreateGadget Test")
CanvasGadget(0, 10, 10, 150, 100, #PB_Canvas_Border)
OpenWindow(1, 300, 200, 200, 200, "Second Window")
CloseWindow(1)
;UseGadgetList(0)
CanvasGadget(1, 200, 100, 50, 50, #PB_Canvas_Border)
Last edited by Niffo on Thu Oct 25, 2018 9:03 pm, edited 1 time in total.
User avatar
Peter
 
Posts: 552
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

Re: Impossible to create a gadget after a window opening

by Peter Thu Oct 25, 2018 8:30 am

Code: Select all
UseGadgetList(WindowID(0))
User avatar
Niffo
 
Posts: 32
Joined: Sat Jun 16, 2018 10:30 pm

Re: Impossible to create a gadget after a window opening

by Niffo Thu Oct 25, 2018 8:53 am

Ok, thank you very much Peter, my mistake and sorry for the forgetting of the "WindowID()" in this too simple snipet.
It seems like my problem is a bit more complicated. This thread can be deleted, i will post a better example to illustrate my problem ...

[Edit] Got it ;) : viewtopic.php?f=11&t=1570 [/Edit]
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest