LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Methods for resizing front panel elements while keeping others locked (position and size)

Hi all

 

I am trying to make my front panel resizable so that the user may maximize the window to fill the whole screen if he/she wishes to. The front panel typically consists of one graph and a few controls (start, stop, log etc.). The controls should stay the same size and in the same position (e.g. occupying a height 100px, width 100% area at the buttom of the window) and the graph should fill the rest of the window. When the window is resized the graph should shrink/expand to fill the space and the controls should retain size and position.

 

What is the current best method for doing things like this and what do you guys do?

 

I've thought of using splitters (http://www.ni.com/white-paper/3687/en) or XControls (where you can get bounds, area, position etc. via property nodes). Any other ideas of comments on what might be best?

 

Best regards

Jonas

0 Kudos
Message 1 of 3
(2,542 Views)

The splitter is the way to go.

 

You can set the splitters to lock in place relative to the window and then set graph to fill and scale with pane.

 

No additional code to write, LabVIEW will handle the scaling for you.


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 2 of 3
(2,535 Views)

Thanks - the splitters works just fine. I just wanted to know if that was what people were doing or if there were something even smarter/easier 🙂

0 Kudos
Message 3 of 3
(2,509 Views)