From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Border of Cluster control to reduce size of cluster array

Solved!
Go to solution

Dear Community

 

I have a long pending problem. We would like to build e.g. a graph legend by usage of an array of clusters. see picture.

 

As we have such lists more often we would like to get rid of useless cluster borders when using the cluster as an array element. (one could also call it advanced multicolumn listbox)

 

I have already seen a solution of a similar problem when using the picture control.

 

http://forums.ni.com/t5/LabVIEW/Remove-picture-control-frame-for-a-picture-array/m-p/3107081/highlig...

 

I tried this for the cluster but it is not 100% sucessful as the cluster control does not have two seperate objects.

 

Do you know a way to remove the gap between the cluster elements completely or bring it to an absolute minimum.

 

The picture shows a first step but it is not possible for me to reduce it more.

Cluster Array

 

Thank in advance for your suggestions.

 

 

 

 

 

Gernot Hanel
IONICON Analytik Gesellschaft m.b.H.
0 Kudos
Message 1 of 11
(8,871 Views)

Hi nottilie,

 

reorganize your array of cluster to a cluster of arrays.

It may look like this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(8,859 Views)
Solution
Accepted by nottilie

Here's a 1px cluster, originally posted here - https://lavag.org/topic/5013-compacter-cluster-arrays-tables-with-controls/#comment-28056


___________________
Try to take over the world!
Message 3 of 11
(8,852 Views)

Dear GerdW

 

I like this idea and I will think about it to change to such a model.

In principle I would prefer the Array of Clusters way because then all the data is located in one typedef which also corresponds to the single element.

 

Yes it is possible to change but up to now I am not 100% sure if it is worth to do this work and especially when I add some new entry I think it is easier to handle the array of clusters.

Also the handling of the scroll bar(s) is easier in case of the cluster array solution.

 

Please state it is a too subjective point of view or also a little bit realistic.

 

 

Thank you

 

Gernot 

Gernot Hanel
IONICON Analytik Gesellschaft m.b.H.
0 Kudos
Message 4 of 11
(8,849 Views)

Sorry to ask you again

 

 

After testing and accepting this nearly perfect solution I wanted to change the background color to transparent.

 

As the control is a modern control it is not possible to get rid of the grey shadow on top of it when you use a different panel background.

 

Is there somebody out there who knows a location where this boarderless cluster control is available as a classic control or a control style without shadow (as in the window 8 and 10 3d effects are no longer as popular as they were in XP Vista and 7)

 

Kind regards

 

Gernot

Gernot Hanel
IONICON Analytik Gesellschaft m.b.H.
0 Kudos
Message 5 of 11
(8,823 Views)

Borders on modern controls can be made transparent. You need to right click the border with the paint tool, then click spacebar to toggle the FG/BG selection (see the text on the bottom of the color dialog) and then select the T color. This also works with this control, although its border is harder to hit because it's narrow.


___________________
Try to take over the world!
Message 6 of 11
(8,817 Views)

Thank you once more and sorry for my stupidity.

 

Managed it now "perfectly"

 

Here is my result.result.JPG

Gernot Hanel
IONICON Analytik Gesellschaft m.b.H.
0 Kudos
Message 7 of 11
(8,814 Views)

Hello again

 

I am sorry to ask once more regarding this topic.

I just did a test in a differnt context to see the border of the borderless control.

It seems that it is not possible to get rid of different colors of the last pixel of the border.

 

In the picture there are some examples shown.

The questions is if it is possible to get rid of the last pixel in the wrong color which can be seen on the most left control.

 

I was not able to manage to color the border of the borderless cluster control. If it is 100% possible I would retry it. But from my expirience it is also not possible to color the border on the "modern" controls only on the "classic controls"

Please state if you have a different experience.

 

compare colors.JPG

 

Thank you

 

Gernot

 

 

Gernot Hanel
IONICON Analytik Gesellschaft m.b.H.
0 Kudos
Message 8 of 11
(8,774 Views)

You need to use the Control editor (Advanced>>Customize) to swap out that modern frame with a simple square that you can make transparent.  I have a "thin cluster", which has a one-pixel border and a simple box frame, in my Flatline Controls package on LAVA, so you might see if that works for you.  It's annoyingly hard to click on the one-pixel border, but you can make it transparent.  

 

>>Added later: tst is right, you can make the modern borders transparent.

Message 9 of 11
(8,770 Views)

It's definitely possible, but like I said, you need to toggle the FP/BG color selection and it's harder with this control because you have fewer pixels you can click on and there's no indication of where those pixels are. Attached is the same cluster where the border is transparent. You'll note that it's also harder to move and resize the control because the border is thin.


___________________
Try to take over the world!
Message 10 of 11
(8,752 Views)