04-04-2011 01:53 PM
The custom style of a UIR panel title is always replaced by Windows default blue title bar.
http://forums.ni.com/t5/LabWindows-CVI/Removing-Windows-based-frame-for-UIR/m-p/271361
Is this still true in newer version of LabWindows/CVI?
No way to get around it in CVI 6, 7, 8?
04-05-2011 08:38 AM
dcl9000:
In CVI 6.0 through 2010, for child panels only, you can use SetPanelAttribute to set the titlebar style to classic, and then you can set the background color, font, etc. But it's only for child panels, you can't have a classic main or parent panel. You'll get a runtime error if you try to set your main panel to a classic titlebar.
SetPanelAttribute (childPanelHandle, ATTR_TITLEBAR_STYLE, VAL_CLASSIC);
SetPanelAttribute (childPanelHandle, ATTR_TITLE_BACKCOLOR, VAL_DK_YELLOW);