10-11-2018 11:29 AM
Strange question, but here's what I have. I've got a library function I wrote that takes spawns a panel while avoiding the panel on which the calling control resides.
But my little function doesn't work if the control resides on a tab control page, since these have their own panel handles.
My question is: given only the panel handle (which may be a tab page), is there a way to figure out if this is from a tab control and then look up the housing panel handle?
10-11-2018 01:23 PM - edited 10-11-2018 01:24 PM
Well, tab pages are childs of the panel the tab control is on, so if you don't use child panels in your applications this is a good starting point. The parent panel actually is the housing panel.
I'm afraid I have no other suggestions at the moment.