Jump to content

Frame around cluster


Recommended Posts

Hi guys,

I'm trying to build an array of 2 nested color boxes, which are in a cluster. The idea is to have the inner box display the state of the array element and use the outer box for a kind of highlighting frame. It works all fine but when putting the cluster into an array the cluster frame separates the elements and if there are a lot of small color boxes the frame tends to eat up most of the display area.

I've used the cluster control from the classic controls and made the frame transparent, but it is still there and is visible as the gap between the elements :angry:

What I would like to have is like the right part of the picture (just an array of color boxes, no cluster) but with the nested pair of color boxes.

Any ideas how to remove the frame around the cluster or at least reduce its width?

Thanks a lot!

post-3733-1152177152.png?width=400

Link to comment

You need to customize the color box (Right click, Advanced, Customize, change to customize mode).

Since you can't delete the border, the only option is to make it smaller and hide it beneath the box itself.

Greetings,

VDB

Link to comment
You need to customize the color box (Right click, Advanced, Customize, change to customize mode).

Since you can't delete the border, the only option is to make it smaller and hide it beneath the box itself.

Greetings,

VDB

Hi VDB,

I tried that, but if I make the cluster smaller the visible area of the controls inside the cluster is also reduced and the frame remains the same. :headbang:

I didn't find a way to disconnect the visible area from the cluster frame.

Any more ideas?

Thanks,

Guenther

Link to comment

OK, I found a way but this is really REALLY cumbersome. The inspiration came from an older thread in LAVA:

http://forums.lavag.org/index.php?showtopic=105

The idea is to have two arrays with color boxes behind each other, with the color boxes in front slightly smaller so you can see the box in the back as a frame. The box in the front array is embedded in a cluster with invisible frames so here the frame takes care of the spacing.

Important: For the front array drag an array control to the front panel and color the array background transparent BEFORE you drag the array element inside, otherwise you won't be able to see the back array.

This is really tedious, I wish NI would give us more control over the cluster frame.

Cheers and :beer:

Guenther

post-3733-1152197309.png?width=400

Download File:post-3733-1152197366.vi

Link to comment
OK, I found a way but this is really REALLY cumbersome. The inspiration came from an older thread in LAVA:

http://forums.lavag.org/index.php?showtopic=105

The idea is to have two arrays with color boxes behind each other, with the color boxes in front slightly smaller so you can see the box in the back as a frame. The box in the front array is embedded in a cluster with invisible frames so here the frame takes care of the spacing.

Important: For the front array drag an array control to the front panel and color the array background transparent BEFORE you drag the array element inside, otherwise you won't be able to see the back array.

This is really tedious, I wish NI would give us more control over the cluster frame.

Cheers and :beer:

Guenther

post-3733-1152197309.png?width=400

Download File:post-3733-1152197366.vi

Guenther,

I have had that grip about cluster frame thickness now for a long time as well. This *feature* makes array of cluster very hard to use in a UI (as you just found out). In your particular situation there is an alternate solution. Use the colorbox that has a frame for the top array. You can customize this one frame thickness in the control editor.

post-121-1152208723.png?width=400

See attached VI Below

Download File:post-121-1152208599.vi

PJM

Link to comment
Guenther,

I have had that grip about cluster frame thickness now for a long time as well. This *feature* makes array of cluster very hard to use in a UI (as you just found out). In your particular situation there is an alternate solution. Use the colorbox that has a frame for the top array. You can customize this one frame thickness in the control editor.

PJM

Hi PJM,

yes, that is a good solution to make the frame thinner. Just what I was looking for.

Thanks!

Guenther

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.