LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

splitter bar position (min and max values)

I'm just starting to use splitter bars in my UI to help with dynamic resizing.

They work well but there is one screen setup where I need them out of the way.  In other words, can I revert to a single full size pane on the panel and then back to the "splitter" style screen in my code?

 

I can adjust the splitter position property to 1 to move it fully left but moving it fully right is a challenge.  How can I find the maximum allowed value for this property?

I seems to depend on weather the scroll bars are visible and the border size of the splitter in addition to the current window size.

 

0 Kudos
Message 1 of 3
(3,040 Views)

You'll probably just have to use property nodes to read those other properties, and do some math to determine what is the max value you can set the position to.

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

I'm sure there is a combination of properties to add/subtract/offset but I was thinking there might be some documentation on what values are involved.

I'd hate to have it work on my computer just to have it fail when operating with different resolutions or font sizes.

 

As a last resort I could try a max value based on screen size and decrement in a loop if an error resulted.  Of course the best option is some way of converting one of the panes back to full window size for certain operations.

 

0 Kudos
Message 3 of 3
(3,027 Views)