![]() |
Toolbar background not themed correctly |
Post Reply ![]() |
Author | |
zrethy ![]() Newbie ![]() ![]() Joined: 19 June 2003 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() Posted: 08 May 2007 at 3:51am |
I've inherited a toolbar class from CXTPToolbar and overridden CalcDockingLayout(). Seems that something went wrong because when using the Office2003 Theme, the toolbar background isn't gradient just a solid colour (while my other toolbars on the same app are gradient).
I wasn't able to find the code where I calculated a wrong size or something - but if I knew which lines exactly are responsible for drawing the gradient background for a toolbar it could help (I suspect it's in CXTPOffice2003Theme::FillCommandBarEntry()) TIA, |
|
Regards,
Zsolt Rethy |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
if your toolbar can't be docked - Office 2003 draw it flat. You can override CXTPOffice2003Theme::HasFloatingBarGradientEntry method to change it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
zrethy ![]() Newbie ![]() ![]() Joined: 19 June 2003 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Thanks, it turned out to be a different problem (not a CodeJock one) - just forgot to copy over some code so the gradient filling code operated on an empty rectangle (all zeros).
|
|
Regards,
Zsolt Rethy |
|
![]() |
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 |