Jump to content

Compacter cluster arrays / tables with controls


Recommended Posts

Lately I was talking with a colleague about placing controls in a table. He showed me an application written in .NET or so which had a very nice table with all kinds of controls in it. The customer had asked him to create a similar application in LabVIEW.

The usual trick with these kind of things is to take a classic array, "paint" it transparent, add a classic cluster and also "paint" that one transparently. When controls are placed in the invisible cluster, resizing the array will result in a nice list of these controls, without any array or cluster borders visible. In LV8 the scrollbar on the array makes things even nicer !

Unfortunately between the array elements a gap of some 15 pixels is always present. That is an awful lot of space. The front panel starts to look as if someone did not have the time to complete his job and up to half the screen space can be wasted. So my colleague was not very happy that he could not make it as nice as the .NET app, not even by far.

Now if only we could resize the borders of the array and cluster to ZERO thickness, then we did not even have to make them transparent...

Joris

Link to comment
  • 4 weeks later...

I second the motion on this feature! I have been using "invisible" cluster arrays for years to create control lists, and have always been annoyed by the border thicknesses. I used Active X scrollbars and slider controls in the past before the scrollbar was added to the array control. In addition to being able to hide the borders, there should also be a label list or column/row header property available for the array control to eliminate the need to create free text column headers (or use the caption) for the array.

QUOTE(robijn @ Mar 20 2007, 03:48 PM)

Lately I was talking with a colleague about placing controls in a table. He showed me an application written in .NET or so which had a very nice table with all kinds of controls in it. The customer had asked him to create a similar application in LabVIEW.

The usual trick with these kind of things is to take a classic array, "paint" it transparent, add a classic cluster and also "paint" that one transparently. When controls are placed in the invisible cluster, resizing the array will result in a nice list of these controls, without any array or cluster borders visible. In LV8 the scrollbar on the array makes things even nicer !

Unfortunately between the array elements a gap of some 15 pixels is always present. That is an awful lot of space. The front panel starts to look as if someone did not have the time to complete his job and up to half the screen space can be wasted. So my colleague was not very happy that he could not make it as nice as the .NET app, not even by far.

Now if only we could resize the borders of the array and cluster to ZERO thickness, then we did not even have to make them transparent...

Joris

Link to comment

Here is a .ctl file -- a borderless cluster. How did I build it? I hacked around in the debugger. But the resulting .ctl file passes all sanity checks and should be usable.

The control file is saved in LV8.0.

Borderless Cluster.ctl

Edited by Michael Aivaliotis
Re-Attached missing Borderless Cluster Control
  • Like 2
Link to comment
Here is a .ctl file -- a borderless cluster. How did I build it? I hacked around in the debugger. But the resulting .ctl file passes all sanity checks and should be usable.

The control file is saved in LV8.0.

Very cool! We've been wanting this, for ages :)

[uPDATE] it looks like it still leaves a 1px border

Link to comment
Here is a .ctl file -- a borderless cluster. How did I build it? I hacked around in the debugger. But the resulting .ctl file passes all sanity checks and should be usable.

The control file is saved in LV8.0.

Stephen,

Thank You Very Much! I Have been bitching about this for years.

You have earned at least one :beer: at NI week.

PJM.

Note1: Funny thing is I have a use case for this right now.

Note2: As Jim mentioned it is not borderless but I can live with one pixel border (<=> 2pixels separation between array elements).

Link to comment
Here is a .ctl file -- a borderless cluster. How did I build it? I hacked around in the debugger. But the resulting .ctl file passes all sanity checks and should be usable.

The control file is saved in LV8.0.

Hehe, nice hack AQ ! This is might become one of the most used ctl files there is !

Joris

Link to comment
  • 6 years later...
Ok, I edited my original post. There's now a second .ctl file there in addition to the first one, and I renamed the first one to reflect that it isn't actually borderless because of the 1 pixel.

 

Where is the original Post? Where is the second .ctl? ... I'm looking for the 0 pixel border cluster.

 

Anyone have it in there archive? 

 

Thank you

Link to comment

Okay so I don't have the original post of the 0px cluster.  But to me it was a little useless because it was 0px and you couldn't actually click it to select it.  This broke work flow every time you needed to move it on the front panel.  But what I do have that I don't see here is a 0.5px cluster.  It has 1px on the left and top border, but 0px on the right and bottom.  This means you cannot select the cluster by clicking the right or bottom, only on the left and top.

Top Left Border Only Cluster.ctl

Link to comment
Ok if it's impossible to move the 0px cluster around, I agree with you it's useless.

I don't remember if there were other ways to select the cluster and move it.  You may have been able to double click it from the block diagram, get its selection, then use the arrow keys to move around I don't remember if that worked or not.  Even if it did work any engineer taking over a project would get quite frustrated when they couldn't find out a simple thing like "Is this an array or a cluster?" and "how do I select the stupid thing?"

Link to comment
HTML link got garbled. See my post in Darren's nugget on arrays of clusters of arrays. Date was 5-9-2012.

This is still not the borderless one posted by AQ years ago.  This is also a 1px border.  If you put a numeric in the cluster then the cluster in an array, the size of the array will be 2 pixels larger in width and height when compared to just an array of the numeric.  The cluster I posted will be 1 pixel larger in height and width.  The one originally posted would be the exact same size because it was truly borerless.

Link to comment
This is still not the borderless one posted by AQ years ago.  This is also a 1px border.  If you put a numeric in the cluster then the cluster in an array, the size of the array will be 2 pixels larger in width and height when compared to just an array of the numeric.  The cluster I posted will be 1 pixel larger in height and width.  The one originally posted would be the exact same size because it was truly borerless.

 

I had found the same 1px border in my 2009 archive and I can't remember seeing a 0px border before.  (related post: http://lavag.org/topic/11002-cluster-border-thickness/)

 

Set Autosizing to "None" and make it the same size as the numeric, align the numeric in the center and you won't see a difference anymore.

Link to comment
I had found the same 1px border in my 2009 archive and I can't remember seeing a 0px border before.  (related post: http://lavag.org/topic/11002-cluster-border-thickness/)

 

Set Autosizing to "None" and make it the same size as the numeric, align the numeric in the center and you won't see a difference anymore.

Okay maybe this mythical cluster never really existed and it was a dream.  I must have been thinking of the Left and Top cluster I already posted, and can be found in the thread you linked to.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.