09-16-2016 11:32 AM
LabWindows/CVI 2015, Full Development System, Version 15.0.0 (413)
Within my test code, which I placed in a DLL to be called from TestStand, I have a UIR that will be displayed when I need the user to flip a switch on the test station. I have the Title bar, for the panel, set as Visible and with the style Classic. That looks fine, in the LabWindows/CVI development window, with the title centered at the top of the panel. However, when I have the window displayed, using either a LabWindows executable or a LabWindows DLL function call from TestStand, the panel is not displayed as Classic. The Title is left justified at the top of the window. The code, indicators, and controls work fine. While it works functionally, I prefer the look of the Classic sytle (centered title).
Are there some file(s) that I need to include in the project / linker to have the panel displayed in the Classic style?
NOTE:
If you are wondering what I have done to the uir:
I have included, after removing code that is irrelevant to this discussion, the code that I use. The uir is a layered panel. For the rings around the switch, I have layered the outer ring, the inner ring, and then the switch (from bottom to top). For the text, I created a text box to place the text within. I could not determine how to just place text on the panel without using a text box. However, I could not set the text box frame to zero or change the color. So, I placed a frame decoration over the text box frame and changed the color of the decoration to the background color to make it appear that the text box frame is not there. When I executed the code, although the text boxes were set as indicators, when the user placed their mouse over the text box, the box would move slightly and highlight the text or frame type thing. The user could not change the data but it annoyed me. To get rid of this, I placed a decorative box over the entire panel setting it interior color to transparent. That way it was layered over the text boxes so that the text boxes would not behave oddly. Finally, I placed the DONE control over the top of that so that the user could tell the test program when the test station switch was configured as required. Also, the omega symbol uses an Picture control with the background set to transparent.
Solved! Go to Solution.
09-18-2016 11:49 AM
The classical titlebar, unfortunately, is visible (observable) for child panels only. For parent panels it is the Windows setting that determine the titlebar visualization.
09-18-2016 04:29 PM
Some tips that may help you in designing the UI without the need to layer controls one on top of the other.
09-19-2016 05:17 AM
Additionally, you can have Multi-Line Control Labels and Texts
09-19-2016 09:44 AM
Thank you.
I usually program in LabVIEW. I missed the noticing the Text Message control.
While it took me a few moments to find, in my version of Windows, how to change the keyboard to Greek, I should mention, at least for me, I had to exit LabWindows and re-enter to get the Greek keyboard to work.
Everything works and looks great in a much easier format.
Thank you for being an expert and sharing your knowledge !