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.
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.
05-12-2015 06:46 AM
The following image (from the attached VI):
Are one enum and three rings (top to bottom) which all return identical results for Control.MasterRectangle, Ring Text.Master rectangle and so on.
According to VI Server, the text of the named numeric ring should be positioned exactly the same in all of these controls (unless my VI server knowledge is rusty) but they clearly are not. The top one (enum) has the text shifted way left. The second and fourth seem the same whereas the third is again shifted (albeit it only by a single pixel). These three are all Rings.
Anyone got any idea how this happens or how I can fix ? It's kind of messing up our UI.
These controls all went through numerous rounds of properties being read and written during a recent UI change in our software.
LV 2012 SP1
05-12-2015 07:33 AM
Well, I can tell you how I did this -- I created it that way! The first entry in the Ring or Enum (entered using the right-click, Edit method) had no leading space, the next had one, the last had two). WYSIWYG. I'll note that both the Ring and Enum appear similarly spaced (this example is from LabVIEW 2014, but I'm pretty sure that earlier versions will do similar things). I did notice one of your examples started with a capital "I", an unusually "narrow" letter -- could this (also) be a Font thing?
Bob Schor
05-12-2015 08:38 AM
Hi Bob,
have you looked at the controls on the FP of the VI I attached? I checked them for leading spaces but they don't have any. All of the strings show no leading spaces (at least on my machine).
They all also have the exact same font (Tahoma 13 regular).
05-12-2015 09:58 AM
These controls look like system style. Is that correct? If so, is there a possibility to perform the same actions on native LabVIEW Ring/Enum Controls and check whether this behaviour is persistent?
The little checks I did myself yielded no reason why there should be an offset of any kind on the left side of the controls. No codes, no non-printable characters or anything of the sort.
05-12-2015 10:02 AM
No, I think they're classic style (loriginally at least) They've been heavily customised (which was a major PITA to be honest).
05-12-2015 10:56 AM
Maybe related to this:
Obviously the Y label is not centered, but there's no way to move it. And no, no spaces in the label. See attached VI (LV2012).
The y labels just seem to be torn down by gravity occasionally
05-12-2015 03:29 PM
Sorry, I didn't see there was an attachment. Now that I do see it, I've tried taking your controls "apart" and figuring out what makes them tick. Pretty obscure -- I couldn't budge them very much, and certainly was unable to adjust the difference in identation. It will be interesting to see how this happened ...
Any hints on what you did to create these? They do involve some level of customization, no? Something other than the simple Edit tools on the Typedef/Control window?
BS
05-13-2015 01:32 AM
@Bob_Schor wrote:
Any hints on what you did to create these? They do involve some level of customization, no? Something other than the simple Edit tools on the Typedef/Control window?
Well they weren't created by me personally. They did involve a bit of work, but nothing beyond the usual customise options. They have been recoloured / properties read and written via a property copier code I have written (pretty extensive, every normal and scripting property was read and written at least once). But this is the same for all of the controls here, no real differences.