LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Splitter (BUG?) Resize work-around needed

I have a GUI which I really like but I ran into a problem that has stumpted me.  I have a single vertical splitter on the left side of the screen is a bunch of controls like a side bar.  I have the controls to resize with pane (LV 8.2) and it works great.  The only problem is that when the user moves the splitter all the war to lhe left the left pane width becomes zero ane the control width becomes huge then the control nolonger resizes correctly.  Can I limit the movement of the splitter to now allow the user to drag it past a minimum side?  I tried with events with no suscess, mouse move did not update fast enough. Is there a work around, I really like the splitter with resize with pane option.  What to do?
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 1 of 6
(4,116 Views)
Typically you don't want controls to resize themselves in that fashion. Something like a graph indicator is a good candidate for that behavior. The "Multi-Panel Front Panel using Splitter Bars" example is a good example of this. With respect to the behavior I'm not seeing exactly what you're seeing. When I place a vertical splitter and then place a rectangular button in the left pane and select the "Scale Object with Pane" for the button, LabVIEW will not let me move the splitter beyond a certain point. I certainly can't move it all the way to the left, so it's not clear, at least to me, what is going on with your implementation. Could you post the VI, or at least just the relevant parts?

One simple work-around that I can think of off the top of my head is to read the splitter position in the Timeout event case and then coerce the position if it's less than some value. Sort of like this:

Message Edited by smercurio_fc on 08-17-2007 09:12 AM

0 Kudos
Message 2 of 6
(4,099 Views)
What about the 'Minimum Pane Size' property?

It's kinda strange, it is not labelled as a private property, but I don't find any help about it...

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 6
(4,090 Views)
Strange indeed. I don't even see this property.
0 Kudos
Message 4 of 6
(4,087 Views)

I looked for the minimum pane size first only could find the minimum pannel size.  Will coersing the splitter position happen after the resize event if it does, then it is too late.  I could possible do this on the mouse up depending on when the objects are resized. 

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 6
(4,082 Views)

Minimum pane size works, sorry I had to det this programmatically since there was no option in the property popup for the pane in the splitter menu.  Thanks all is well now.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 6 of 6
(4,070 Views)