With child.setparent( parent ) it does not function:
Does it give another away?
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?