Creating a sub window

BlitzMax Modules Forums/Brucey's Modules/Creating a sub window

That was a bit of a cheat. You could have created the dialog within myFrame's OnInit() - passing Self as the parent window and then just called ShowModal() on the button click.

[edit] Sorry, long overdue for lunch :-)
		Local  Addpos:wxDialog  = New wxDialog.Create_(myFrame(event.parent),wxID_ANY , "Add POS",200,200 , 500, 300, wxDEFAULT_DIALOG_STYLE)
		Addpos.ShowModal()

Is the more standard alternative