LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sliding panel covering splitters

I have the "main.vi" with 4 graphs fitted to their panes divided by the red splitters, (see 1.png).

 

I want a sliding bar with some controls to appear from the bottom of the panel (see the final position of the blue bar in 2.png) when I move mouse near the bottom of the panel bounds, then after some time the bar disappears moving toward the bottom.

 

The blue bar is in front and all stuffs are behind it.

When the sliding bar appears the two bottom graphs must remain to the same size as before, so no scaling to fit panes must occur, for this reason I think the best way could be to call a floating panel as floating.vi adapting it to the main panel bounds.

 

(Is it better to embedd all controls inside the main.vi? Other solutions are welcome).

 

I don't know the floating.vi behavior when I move the main panel, dragging it by its title bar or resizing/maximizing it.

 

How the floating.vi can instantly follow the main bounds, or at least disappears, when

mouse drags windows title bar or at resize/maximize?

 

 

 

 

 

 

 

 

 

Download All
0 Kudos
Message 1 of 3
(554 Views)

I think it's easier if you keep the  controls in the main vi to make it easier to implement. 

I',m not sure if you are able to resize the red splitters.

I was able to get to the property of Panes bounds, but LabVIEW does not allow to write on the BOUNDS property. Unless there is some other way I'm not familiar. 

LVNinja_0-1691596684503.png

 

0 Kudos
Message 2 of 3
(505 Views)

It would be a lot easier to put all controls on the main vi and keep them visible all time.

 

If you want to use a floating window, make it a child window of main.

When show/hide the floating window, now graph will be squeezed.

When move main vi, child window will move with main automatically.

When resize main vi, however, you have to resize the child in the sized event.

 

Download this llb for set parent function:

https://forums.ni.com/t5/LabVIEW/How-to-run-an-exe-as-a-window-inside-a-VI/m-p/4096356/highlight/tru...

 

 

 

George Zou
0 Kudos
Message 3 of 3
(496 Views)