LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

show a control over a tab

Solved!
Go to solution

How can I have a control visible over a tab control?

I don't want to place the control inside the tab, so I create it on the panel outside the tab.

I move it with arrows, but it's always shown behind the tab (both in Edit and operate mode), even if I select Control ZPlane Order >> Move to front.

 

As you can see in the attached file, the controls are shown over the tabs, but behind the tab body.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 5
(3,984 Views)

Hi vix,

 

I am not sure I understand your inside / outside the tab - but moving a control does not work because in this case the control remains on the same panel, while the tab is on its own panel. You may use cut & paste instead.

0 Kudos
Message 2 of 5
(3,982 Views)

Hi Wolfgang,

I know that every tab page can be used as a different panel (as a matter of fact I can use InsertPanel AsTabPage( ) for example), and I'm able to create and/or move controls inside tab pages.

But I'm not able to have a single panel (named PANEL) and two controls on in (a TAB and a SLIDE for example), having the slide visible over the tab.

If I have a numeric and a slide, for example, I can move one in front of (or behind) the other with the "Control ZPlane Order" feature. With a tab this feature seems not working.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 5
(3,980 Views)

Vix,

 

I am not an expert with tabs and may be completely wrong, but in my understanding you can not have one single panel with a tab control and a slide control, because when you create the tab you automatically create a new panel and hence you arrive at two panels in total, your panel PANEL and a new TABPANEL...

 

Try to create a control on the tab and have a look in the UI header file - you will see that your control on the tab has a different name, e.g. TABPANEL_NUMERIC_52, instead of PANEL_NUMERIC_52

 

Sorry if I got it wrong...

.

Message 4 of 5
(3,967 Views)
Solution
Accepted by topic author vix

Hi Vix,

 

Wolfgang is correct. You cannot have a control that is on the same panel as a tab control overlap the tab control. It can overlap the area that corresponds to the row of tab labels, but it cannot overlap the main body of the tab control. As Wolfgang pointed out, this is because a tab control is simply a collection of child panels and child panels cannot be overlapped by other controls in the parent panel.

 

Luis

Message 5 of 5
(3,952 Views)