LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Objects on Tab Control

Hello,

I have a tab control. There are some controls that I would like to share
between multiple pages. Is there a way I can create an object that floats
over the tab control and then control it's visibility with the tab control
value?

Thanks,

Peter
0 Kudos
Message 1 of 5
(3,831 Views)
I was able to do what you are looking for by use of "smoke and mirrors". Keep in mind that the color selection ins't quite perfect. I used a tab control. Put the 'shared control' outside of the tab, and on top of a classic raised box, and used a thick line to disguise the junction between the box and the tab control. The code behind it is that you would hide or enable the control in the 'shared space' I created with decorations based on the tab state.

This should work fairly well.

Also, check LabVIEW 6.1, they may have added shared controls. I don't have my copy yet (darn postal service...) so I can't tell you off hand. Perhaps someone else knows...

Good luck

VI (Front panel) attached.
0 Kudos
Message 2 of 5
(3,831 Views)
Peter,
select the control and move it over the tab using keyboard arrows instead of the mouse. This way the control won't belong to a tab page. At edit-time the control casts a thick shadow on the tab that disappears at run-time. If necessary, bring the control to front so it appears over the tab.


LabVIEW, C'est LabVIEW

Message 3 of 5
(3,831 Views)
Wow, very good solution. 5 points.
How you knew about this?
0 Kudos
Message 5 of 5
(3,831 Views)
> I have a tab control. There are some controls that I would like to share
> between multiple pages. Is there a way I can create an object that floats
> over the tab control and then control it's visibility with the tab control
> value?
>


Objects in a tab control belong to one and only one page. You have two
options to get what you want. If the control is in only a few pages,
you can clone the control and put it in each of the pages you need it
in. On the diagram you will have multiple terminals, and if it is an
indicator, always write to all of them. If it is a control, then you
will need to know which one to read based on the tab value, then write
back to all of them to keep them in synch. Same goes for most attributes.

Another option that wor
ks well if you want it on most pages is to place
the object above the tab control, but not in it. It is easiest to do
this by placing the object beside the tab control, select it, then using
the keyboard arrow keys, manuever it where you need it onscreen. It
should have little shadows projecting below it showing that it is
floating above the tab. When run, the shadows disappear and the object
will appear to be a part of every tab. You will need to actively hide
it for the exceptions.

Greg McKaskle
0 Kudos
Message 4 of 5
(3,831 Views)