viSci Posted December 6, 2012 Report Share Posted December 6, 2012 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. Quote Link to comment
MikaelH Posted December 6, 2012 Report Share Posted December 6, 2012 Can you give us a bit more info? What numbers, I32,SGL,DBL? Arary Size? Start Number? Quote Link to comment
Yair Posted December 6, 2012 Report Share Posted December 6, 2012 (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 December 6, 2012 by Yair Quote Link to comment
hooovahh Posted December 6, 2012 Report Share Posted December 6, 2012 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. 1 Quote Link to comment
Popular Post Darin Posted December 6, 2012 Popular Post Report Share Posted December 6, 2012 Here is my favorite trick. Drop a matrix control onto the FP. Right-click and disconnect from type-def Make it 1D, vertical and hide the scrollbar (if you like) 5 Quote Link to comment
GregSands Posted December 6, 2012 Report Share Posted December 6, 2012 Drop a matrix control onto the FP. Nice trick Darin - you get a numeric control which actually has vertical sizing. I never knew that. Quote Link to comment
viSci Posted December 6, 2012 Author Report Share Posted December 6, 2012 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. Quote Link to comment
MikaelH Posted December 6, 2012 Report Share Posted December 6, 2012 Mikael, this is about the UI itself. Ahhh, now I get it , stupid me. Quote Link to comment
hooovahh Posted December 6, 2012 Report Share Posted December 6, 2012 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. Quote Link to comment
Yair Posted December 7, 2012 Report Share Posted December 7, 2012 This would also be the right place to mention Altenbach's flat controls idea - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Flat-controls-indicators-and-containers/idi-p/919361 1 Quote Link to comment
viSci Posted December 7, 2012 Author Report Share Posted December 7, 2012 Great Idea - just kudoed it. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.