here is a simple pic to kind of show what I am trying to go for. So how would I be able to do this?
basically in code what I am doing is this.
Code: Select all
// pointers in the class to the controls/panels
if( options A )
swappanel = LoadPanel( ... "optionApanel") // I stored the data in an xml resource
else if( options B )
swappanel = LoadPanel( ... "optionBpanel")
swappanel = LoadPanel( ... "optionCpanel")
right now the code will load the panel, but it will not be in the correct position and is not selectable at all. it will be in the top left corner of the window.
I was searching around and it seems I need to call layout on the window?, but I cannot seem to get that to work.