LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Sub vi tab control or lock main vi focus

Hi All,

 

I have problem for my Main vi to always lost focus when the called sub vi's tab control changing page programmatically by the code within this sub vi. My sub vi is need to show up at second monitor all time. Is any way to disable the focus of the tab control in sub vi or totally disable sub vi focus or lock focus only at main vi but keep show up on second monitor.

 

Thanks all. :manhappy:

0 Kudos
Message 1 of 4
(3,136 Views)

I don't have LV here to try, but I think setting the main VI window appearance to floating will lock the focus on it. It will also stay on top of the other VIs, so you have to decide if this is acceptable for you.

Do you change the tab control by writing to a tab control property node or a local variable?

 

0 Kudos
Message 2 of 4
(3,129 Views)

I have tried to set main vi  window appearance to floating but the focus still lost when the sub vi changing tab control value by itself. The tab control changing page by writing value to its local variable.

I have tried to change disable property of tab control to 1 but main vi still lost focus.

anyone got solution?

 

Thanks all. 

0 Kudos
Message 3 of 4
(3,116 Views)

Hi All,

 

I have found the reason but can not be solved.

The reason :-

Actually the tab control of my sub vi contain activex LED display. My main vi will lost focus or control when changing page everytime. But if I delete the activex LED display from tab control or move the activex LED display away from the tab control then my main vi will remain gain control. 

 

Anyone can give solution to this problem? I awaiting ...Smiley Tongue

 

Thanks all

 

 

0 Kudos
Message 4 of 4
(3,105 Views)