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
Palazzo
Member

Hi Greg, your mod on these tables seems quite nice. Are these classic controls manipulated with tools palette? 

GregSands
Active Participant

Yep, just all standard tools.  Turning arranging and autogrow off for the cluster makes it fairly easy to position things where I wanted, plus judicious use of Transparent colors - use controls that support that (i.e. not System).

pawel.ostrogorski
Member

That would be great. Improving functionality of controlls like tables, MCLs and trees would also be nice. When compared to windows forms they look poor...

Darren
Proven Zealot
Status changed to: In Development
 
A-T-R
Member

Oh happy day...Smiley Very Happy

 

I just found Darrens latest post!

 

What shall I say?

matt.baker
Active Participant

Out of curiosity, is the plan to have a set of flat controls before the release of the new UI improvements (http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Make-updating-the-GUI-a-priority-in-a-near-term-LabVIE...), or will these make use of the new (hopefuly WPF and HTML style) elements?



Using LV2018 32 bit

Highly recommended open source screen capture software (useful for bug reports).

https://getsharex.com/
Darren
Proven Zealot

The two ideas are related. I would say the 'flat controls' idea is a subset of the 'updated GUI' idea.

Khachik91
Member

There are many flat UI items on LabVIEW Tools Network. Ex. 

http://sine.ni.com/nips/cds/view/p/lang/en/nid/213032

Thank you,
Khachik Sahakyan | CLA
altenbach
Knight of NI

JKI just came out with a collection of flat UI elements:

 

JKI Flat UI Controls Toolkit for LabVIEW

 

Looks nice! 😄

Darren
Proven Zealot
Status changed to: Completed

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