LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

get panel from tab page panel?

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?

0 Kudos
Message 1 of 2
(2,185 Views)

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,173 Views)