Swapping Window Parents

BlitzMax Forums/BlitzMax GUI Programming/Swapping Window Parents

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Mmm dunno exactly, I think not btw. However, creating a new window with child objects shouldn't be rocket science.

Function MakeMyWindow:tgadget()
  Local Window:tgadget=CreateWindow(yadayadayada)
  ..
  CreateButton(yadayadayada,..,..,..,Window)
  ..
  Return Window
End Function


Et Voila, a new window with all your gadgets has been created.

Alternatively:
Function MakeMyWindow(parent:tgadget)
  ..
  CreateButton(yadayadayada,..,..,..,parent)
  ..
End Function


Alternatively:
Type WindowContent
  field window:tgadget
  field button:tgadget
  field slider:tgadget
  field editfield:tgadget
End Type

function FillWindow(w:WindowContent)
  w.window=CreateWindow(yadayada)
  w.button=CreateButton(whoopiedoo)
  w.slider=CreateSlider(bidibidi)
  w.editfield=CreateEditfield(mimimimi)
end function

local myWindowContent:WindowContent=new WindowContent

FillWindow