Print Page | Close Window

Thin blue line XP style border

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=9846
Printed Date: 27 September 2024 at 4:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Thin blue line XP style border
Posted By: ReyesRP
Subject: Thin blue line XP style border
Date Posted: 10 March 2008 at 5:54pm
I've got CXTPReportControls on several dialogs and all draw their border 3D sunken style instead of with the thin blue line border used for all of the  built-in Windows controls (XP). Regardless of what border style I set in the RC (WS_BORDER, WS_EX_CLIENTEDGE, WS_EX_STATICEDGE), I'm still not getting the thin blue line style border.
 
What do I need to do to get the thin blue line border?



Replies:
Posted By: ReyesRP
Date Posted: 11 March 2008 at 11:32am
This seems to work, but IMHO, it is a bug that the border does not render to the active Windows theme by default.
 
Derive your CXTPReportControl like this:
 
class MyReportControl : public CXTPOfficeBorder<CXTPReportControl>

then in the constructor call:

XTPPaintManager()->SetTheme( xtpThemeNativeWinXP );



Posted By: ReyesRP
Date Posted: 12 March 2008 at 12:10pm
Actually that only sorta works. I'm getting spurrious dots being drawn in the NC area... Also the scroll bar is drawn inset from the edge...
 
Put in a support issue.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net