I recently starting putting String Indicators in some of my programs that identified the Routine, along with its Version Number. I have also created Dialog Boxes with one-line Messages, usually in large size, often Bold, sometimes colored and with a colored background. I wanted to have the String indicator displaying these one-line messages "fit the text" (if the indicator was too short, the message would be truncated, and if too long, it "looked unprofessional" and wasted space). I found code on the Forum that was awkward and didn't scale with fonts -- I found a work-around, got in touch with NI to inquire about filing a CAR to fix the specific flaw in their Get Text Rect function that I discovered, but was told they were not interested ("You just need to add a constant").
After more investigation, I found an even better solution to this problem, which I have posted to the LabVIEW Community here. While this seems to work, I would like to propose that NI provide a simple Method or Property that could be used to scale the horizontal size of the contents of both the String and Path controls to just fit the content to be displayed in these controls. This Method or Property should work regardless of the other properties, such as Font Size or Font Attribute (Bold, Italic, etc.). It should also work regardless of the "family" of the control (Silver, Modern, Classic, or System). I do note that System Strings might be a problem, but I could get my code to work with the System 2.0 String indicators available on the LabVIEW Tools Network.
The figures show a Front Panel with "too small" indicators truncating the display of their (variable, and run-time-dependent) content, plus the same Front Panel after I run my "Size-to-Text" code on the indicators. I'm suggesting that NI provide a Method/Property to do the "dirty work" for me.
Notice truncation of Text and Paths
After programmatic adjustment of Indicators to "fit" their content.
Bob Schor