LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Removing Windows based frame for UIR

Hi
 
I am converting DOS based CVI to Windows based CVI and have the following issue.
 
When a panel is created using the UIR editor in DOS CVI, the Title Bar can be coloured and given any thickness. This is then shown when the UIR is run (title bar coloured and text justified as per UIR).
 
The reason for the title bar being coloured is there are several series of product being tested on the same test system. To ensure that the operator / supervisor quickly knows which series is being tested the title bar is coloured differently for each series. This can then be seen from across the room without having to walk to each tester to find the series being tested.
 
Now, in Windows based CVI, this title can be edited and coloured etc., BUT, when running the UIR the title shown is the Windows Blue title bar where the title name is left hand justified and not the title as per the UIR.
 
I know how to remove this Windows title bar in Labview, but I'm now using CVI and cannot find where the controls are to disable this ability. I have disabled the operator from minimising / maximising the whole window, but am unable to reproduce the coloured title bar as per the UIR.
 
Any help is welcome.
0 Kudos
Message 1 of 3
(3,200 Views)
Unfortunately it seems that the titlebar cannot be coloured differently from the standards, so it's correct your approach to hide it and add to the panels a fake title formatted as you want. The title bar can be hided either in the UIR editor (Edit panel window, Other attributes... button; in the new dialogue uncheck Title Bar visible checkbox) or at execution time using
SetPanelAttribute (panelHandle, ATTR_TITLEBAR_VISIBLE, 0);
 
In addition to this, the whole panel background can be coloured in whichever colour you want provided the Conform to system colors checkbox int Other attributes dialogue is unchecked. It is to be said though that in this case the choice of the background color is critical especially if in your application you use to dim in and out some controls: dimmed controls adapt to the background of the panel they reside onto and have often very poor effect with colours outside the standard, familiar colour schemes.


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?
0 Kudos
Message 2 of 3
(3,194 Views)

Another possibility is to create a single main panel for the application, that is maximised on screen. The panels you actually use can then all be child panels of the main panel (like an MDI application). Child panels can have different coloured title bars.

Martin

--
Martin
Certified CVI Developer
0 Kudos
Message 3 of 3
(3,164 Views)