LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Panes without splitters [VI-Scripting, Labview, front-panel, splitter, panes]

Solved!
Go to solution

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:

  • No splitter
  • 0-pixel splitter
  • transparent splitter.

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.

 

________/~~~~~~~~*********~~~~~~~~\________
Certified delinquent LabVIEW developer. Recertifying at next NI Days
0 Kudos
Message 1 of 7
(4,792 Views)

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. 

aputman
0 Kudos
Message 2 of 7
(4,776 Views)

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? 

________/~~~~~~~~*********~~~~~~~~\________
Certified delinquent LabVIEW developer. Recertifying at next NI Days
0 Kudos
Message 3 of 7
(4,757 Views)

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. 

aputman
0 Kudos
Message 4 of 7
(4,754 Views)

Thanks, I'm currently looking into nominally messy solutions like the one used to build the border-less cluster template:

https://forums.ni.com/t5/LabVIEW/Remove-Border-of-Cluster-control-to-reduce-size-of-cluster-array/m-...

 

Will post for posterity on this thread if I get is right.

________/~~~~~~~~*********~~~~~~~~\________
Certified delinquent LabVIEW developer. Recertifying at next NI Days
0 Kudos
Message 5 of 7
(4,749 Views)
Solution
Accepted by topic author szewczak

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

Message 6 of 7
(4,714 Views)

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)

________/~~~~~~~~*********~~~~~~~~\________
Certified delinquent LabVIEW developer. Recertifying at next NI Days
0 Kudos
Message 7 of 7
(4,679 Views)