11-09-2017 10:16 AM
Hello!
This is an exploratory 'is this possible' post rather than a demand for complete solution.
I want to create a front panel with two panes but has:
I cannot rely on this splitter being the same color as the background color.
Why?
I am trying to create an x-control with some complex sizing. currently I have to problematically move everything on resize, and this would be so much nicer.
Solved! Go to Solution.
11-09-2017 10:56 AM
Your statement is confusing:
@szewczak wrote:
I want to create a front panel with two panes but has:
- No splitter
- 0-pixel splitter
- transparent splitter.
I cannot rely on this splitter being the same color as the background color.
The way I read this, a transparent splitter or 0-pixel splitter is OK. If that is the case, the Splitter on the classic palette can achieve both. But I'm assuming you mean that you don't want to use splitters at all. A tab control is technically considered a pane, however it will be more cumbersome to deal with resizing. For a vertical splitter, you could use the left edge of a tab control as your splitter, set it to scale with the window, and not allow its origin to move any closer than, say 20%, to the pane origin.
11-09-2017 11:18 AM
aputman,
Yes a 0px splitter would work, but I have never been able to script/screen manipulate a splitter into being 0px. Have you been able to do this?
11-09-2017 11:27 AM
I take that back. I was almost positive that I had created a 0px splitter before. Maybe for what I used it for, the contrast with the background was minimal and so it seemed to be disappear.
11-09-2017 11:30 AM
Thanks, I'm currently looking into nominally messy solutions like the one used to build the border-less cluster template:
Will post for posterity on this thread if I get is right.
11-09-2017 03:12 PM
As far as I know what you are asking for isn't possible. It is not possible to make a truly transparent splitter, or a 0px splitter. Vote for this idea here if you want this feature.
You can do some cool things with 1px clusters, arrays, or picture controls. In addition to the 1px cluster there is also a 0.5px cluster, which has one pixel on the top and left, but not the right or bottom. This is a bit of a pain to work with but can make for a cleaner flat UI.
https://lavag.org/topic/11002-cluster-border-thickness/?do=findComment&comment=65950
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-11-2017 11:13 AM
Thank you Hooovahh for popping in with an answer!
Quick note for posterity: I ended up solving the goal of a clean UI inside an XControl with 'on resize' events pushing values to the position&bounds property nodes. This let me get the desired effect without using panes in my XControl.
I also found that if you Need to panes that sit 0 px apart one good option is to use the classic sub-panel (with transparent border)