LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows 2015 Titlebar classic UIR panel not displayed as classic

Solved!
Go to solution

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. 

 

Download All
0 Kudos
Message 1 of 5
(3,611 Views)
Solution
Accepted by topic author Bill.Simmons

The classical titlebar, unfortunately, is visible (observable) for child panels only. For parent panels it is the Windows setting that determine the titlebar visualization.

S. Eren BALCI
IMESTEK
Message 2 of 5
(3,579 Views)
Solution
Accepted by topic author Bill.Simmons

Some tips that may help you in designing the UI without the need to layer controls one on top of the other.

 

  • To place texts on a panel you can use Text Message controls: they appear without border and may have transparent background so thay adapt to every background you may have. Text on Text Message controls cannot be selected with the mouse so you do not need to layer other controls above them.
  • You can use the control labels instead of an additional text (e.g. the "S4" text)
  • Displaying the Ohm symbol is possible in text fields without need to use pictures: see this great message by LuisG.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 3 of 5
(3,576 Views)
Solution
Accepted by topic author Bill.Simmons

Additionally, you can have Multi-Line Control Labels and Texts



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 4 of 5
(3,570 Views)
Solution
Accepted by topic author Bill.Simmons

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 !

0 Kudos
Message 5 of 5
(3,559 Views)