Thin blue line XP style border |
Post Reply |
Author | |
ReyesRP
Groupie Joined: 30 January 2008 Status: Offline Points: 14 |
Post Options
Thanks(0)
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?
|
|
ReyesRP
Groupie Joined: 30 January 2008 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
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 ); |
|
ReyesRP
Groupie Joined: 30 January 2008 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |