How i can a gadget to add later?

BlitzMax Forums/BlitzMax Programming/How i can a gadget to add later?

morszeck(Posted 2006) [#1]
With child.setparent( parent ) it does not function:

Strict

Local window:TGadget = CreateWindow( "test", 100, 100, 400, 400 )

Local panel:TGadget  = CreatePanel( 50, 50, ClientWidth(window) - 100, ClientHeight(window) - 100, Null , PANEL_BORDER    )


panel.setparent( window )    ' setparent a method of TGadget

While WaitEvent()

   Select EventID()
      Case EVENT_WINDOWCLOSE
         End
      Default
         'nix
   End Select

Wend


Does it give another away?


skidracer(Posted 2006) [#2]
Hopefully this will be fixed in the next update.


morszeck(Posted 2006) [#3]
Cool, thx !!!