Print Page | Close Window

Toolbar background not themed correctly

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7076
Printed Date: 14 May 2024 at 2:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar background not themed correctly
Posted By: zrethy
Subject: Toolbar background not themed correctly
Date 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



Replies:
Posted By: Oleg
Date Posted: 08 May 2007 at 6:33am
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


Posted By: zrethy
Date Posted: 09 May 2007 at 7:42am
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



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