LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
altenbach

Flat controls, indicators, and containers

Status: Completed

Available in LabVIEW NXG 1.0. The default style of front panel objects in NXG is a flat style.

As soon as we have more complicated data structures (e.g. clusters of arrays), a large portion of the FP real estate is wasted taken up by borders, frames and trims, etc.

 

We need a palette full of "Amish" 😉 controls, indicators, and containers that eliminate all that extra baggage. We have a few controls already in the classic palette, but this needs to be expanded to include all types of controls, including graphs, containers, etc.

 

A flat control consists of a plain square and some text (numerical value, string, ring, boolean text, etc). A flat container is a simple borderless container.  A flat graph is a simple line drawing that would look great on a b&w printer. A flat picture ring looks like the image alone.

 

They have a single area color and a single pixel outline, if both have the same color, the outline does not show. They can also be made transparent, of course. If we look at them in the control editor, there are only very few parts.

 

Now, why would that be useful?

 

Let's have a look a the data structure in the image. There is way too much fluff, distracting from the actual data. If we had flat objects, the same could look as the "table" below. Note that this is now the actual array of clusters, no formatting involved! It is fully operational, e.g. I can pick another enum value, uncheck the boolean, or enter data as in the cluster above.

 

Many years ago in LabVIEW 4, I actually made a borderless cluster container in the control editor and it looked fine, but it was difficult to use because it was nearly impossible the grab the right thing with the mouse at edit time.

 

The main problem of cours is that the object edges completely overlap, making targeted seletion with the mouse impossible. (For example the upper right corner pixel is the corner of an array, a cluster, another array, and an element at the same time.)

 

So what we need is a layer selection tool that allows us to pick what we want (similar to tools in graphics editing software). It could look similar to the context help shown in the picture with selection boxes for each line. Picking an object would show the relevant handles so we can intereact with the desired object. Another possibility would be to hover over the corner and hit a certain key to rotate trough all near elements until the right element is selected, showing it's resize handles. I am sure there are other solutions.

 

As a welcome side effect, redrawing such a FP is relatively cheap.

 

Message Edited by altenbach on 06-03-2009 09:20 AM
Message Edited by altenbach on 06-03-2009 09:20 AM
38 Comments
Michael.Proctor
Member

Kudos for the borderless or almost borderless Cluster control.

 

I have looked and looked - but I have not found a borderless array control.

Does someone have one for know how to make one.

 

As has been stated in various threads the Labview controls are difficult to make

clean looking UIs - especially if space is constrained and the UI elements need to be small.

 

Michael

Ray.R
Knight of NI

I like it!

 

Definitely useful and highly needed.

 

Kudos!

Ray.R
Knight of NI

Many times I wished for such controls...  and judging from the number of kudos, I am not the only one.

 

EDIT:  Oooops... I didn't notice the 2nd page.. hence the additional post..

 

magicbean
Member

I ended up in this thread because I was actually looking for borderless picture controls and indicators. So yes please, I like this idea (I'm often battling with unwanted pixels in my UIs).

Kudos!

Hooovahh
Proven Zealot

I don't think this meets the need completelly but I think the Variant Tree posted over on LAVA is a nice way to represent data in a more flat layout.

 

http://lavag.org/topic/13748-cr-variant-probe/

 

It adds a probe to variant wires but it also adds the Variant Tree to the controls palette.

altenbach
Knight of NI

Another example where this idea would help significantly to clean up the control and make it look like a simple table (posted here😞

 

 

 

drakhri
Member

I really like the idea of the layer selection tool aswell. 

pawhan11
Active Participant

Excelent Idea !!

crossrulz
Knight of NI

pawhan11, if you like the idea you should give it a Kudos (that yellow star right next to the idea).  NI looks at the Kudos count first before any comments.  So just saying it is a good idea will actually do nothing for the cause.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
GregSands
Active Participant

Just been playing a little more with creating pseudo-flat tables:

 

Flat Table.png

 

There's always a few lines/gaps that can't be removed, so I absolutely agree this idea is important, but it is possible to get quite a long way with existing controls, especially the almost-borderless cluster used here.