Jump to content

Array Gap Removal


viSci

Recommended Posts

Posted

I am trying to create an array of numerics that are as close together as possible.

A long time ago (maybe on info-labview) I seem to remember a discussion on this subject and a technique for doing this.

But so far I cannot figure out what the trick was.

Posted (edited)

Mikael, this is about the UI itself.

You can use a classic array with a classic simple numeric control, which gets you fairly close.

Another alternative is using a table or list box and overlaying the actual control over it on a mouse move event.

Other than that, I believe it's down to directly editing LV resource files.

Edited by Yair
Posted

So I did some testing with Arrays of numerics and seeing how close together they are. I found that the array of numerics are the same size, if you are using a System Array, Classic Array, or Modern Array controls. The Silver Array takes up more space, which didn't surprise me.

I couldn't find anything about smaller arrays, but in my searching I did find this post about small clusters.

The "TopLeftBorderOnlyCluster" is the smallest cluster I've found, but it has the down side of only being able to click it on the left or top edge. The right and bottom edge appear to really be 0px in size and unclickable.

  • Like 1
Posted

In 15 years I never used the matrix control before, nice!

It does not unfortunately get the gap smaller than a classic array.

Looks like we would need someone with access to the LV debugger to

get down to a one pixel gap.

Posted

In 15 years I never used the matrix control before, nice!

I've never used it before either, but to be fair I'm not sure that the matrix control has been around 15 years.

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.