Aristos Queue Posted May 15, 2012 Report Share Posted May 15, 2012 Or is that just not possible to do? I'm specifically trying to find a way to do that to a System Ring control. [EDIT] I post to LAVA... and that way, LabVIEW knows I've sufficiently embarrassed myself publicly with my lack of knowledge, and so now it can show me the answer. There's a property that I *swear* was not in the pop up menu for the last half-hour called "Named Numeric Size" that I can use to resize the ring control. Not exactly what I wanted, but at least I can build it. Grrr. [EDIT] Just in case anyione else is looking for this... 1 Quote Link to comment
mike5 Posted May 15, 2012 Report Share Posted May 15, 2012 Looking for *what*? The property you mention is not displayed in the picture. OTOH, where does the "Get Text Rect.vi" come from - just in case I ever need to know... Br, Mike Quote Link to comment
Popular Post Mellroth Posted May 15, 2012 Popular Post Report Share Posted May 15, 2012 (edited) OTOH, where does the "Get Text Rect.vi" come from - just in case I ever need to know... Graphics & Sound -> Picture Functions Here's a snippet that handles the horizontal resize but also takes into account the font setting in the ring control. /J Edited May 15, 2012 by Mellroth 4 Quote Link to comment
Aristos Queue Posted May 15, 2012 Author Report Share Posted May 15, 2012 Mike5: The last property in my property node is the one I was talking about... but Mellroth's "Ring Text.Width" property is even better because you don't have to worry about the stupid "+ 30" that I'm doing to account for the ring. Mellroth: Does yours work for "zero strings in the array"? Quote Link to comment
Phillip Brooks Posted May 15, 2012 Report Share Posted May 15, 2012 I recall having some weirdness with "Get Text Rect" not working well with italic and bold fonts. I ended up padding by +(x)% of the width to make things 'pretty'... Quote Link to comment
Mellroth Posted May 15, 2012 Report Share Posted May 15, 2012 Mellroth: Does yours work for "zero strings in the array"? Currently it would probably be 7 pixels wide ;-) The easiest way of changing this would probably be to add minimum width to the init terminal of the shift register. /J Quote Link to comment
Saverio Posted May 15, 2012 Report Share Posted May 15, 2012 [EDIT] I post to LAVA... and that way, LabVIEW knows I've sufficiently embarrassed myself publicly with my lack of knowledge, and so now it can show me the answer. For shame! Tsk, tsk.... A less polished version of Mellroth's solution was provided in a post all the way back in 2002 in the LabVIEW forums over at NI (I'm sure you know the place ): http://forums.ni.com/t5/LabVIEW/how-can-i-make-a-ring-control-resize-itself-to-display-the-whole/m-p/47562/highlight/true#M30020 All tongue-in-cheek, of course. Quote Link to comment
Antoine Chalons Posted May 15, 2012 Report Share Posted May 15, 2012 [EDIT] I post to LAVA... and that way, LabVIEW knows I've sufficiently embarrassed myself publicly with my lack of knowledge, and so now it can show me the answer. We're all just humans, aren't we? Quote Link to comment
jgcode Posted May 16, 2012 Report Share Posted May 16, 2012 We're all just humans, aren't we? I sometimes think some of you are programming machines. Sent back in time... 1 Quote Link to comment
mje Posted May 16, 2012 Report Share Posted May 16, 2012 I recall having some weirdness with "Get Text Rect" not working well with italic and bold fonts. I ended up padding by +(x)% of the width to make things 'pretty'... Indeed: http://lavag.org/top...ps-italic-text/ The solution proposed by vugie however works: pad the string with a space. Also I expect the ring control might have a minimum width, and if s trying to set 7px could return an error. Might be wise to enforce a minimum. Quote Link to comment
Aristos Queue Posted May 17, 2012 Author Report Share Posted May 17, 2012 We're all just humans, aren't we? For the time being. We strive for better, and I hope to live long enough for the cybernetic implants to kick into high gear. 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.