Print Page | Close Window

SetCustomTheme

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=654
Printed Date: 23 December 2024 at 7:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetCustomTheme
Posted By: Frode
Subject: SetCustomTheme
Date Posted: 22 April 2004 at 5:19pm

Hello.

When using XTP Toolkit Pro v8.61 I got the following result by using the code blow (the source code for the ToolbarTheme are attached - developed by Codejock):

 // Set Office 2003 Theme
 CXTPPaintManager::SetTheme(xtpThemeOffice2003);
 CXTPPaintManager* pTheme = new CToolbarTheme<CXTPOffice2003Theme>(CSize(58, 18));
 XTPPaintManager()->SetCustomTheme(pTheme);

When using XTP Toolkit Pro v.870 I get the following result by using the same soource code - the Office 2003 look is missing in the tabbar:
PS: When removing the last two lines in the code above the Office 2003 look is back but then I only get small toolbar buttons...

https://forum.codejock.com/uploads/Frode/2004-04-22_171757_ToolbarTheme.zip - 2004-04-22_171757_ToolbarTheme.zip




Replies:
Posted By: Frode
Date Posted: 22 April 2004 at 5:53pm

Hello.

I think I found a solution to my problem:

GetCommandBars()->GetCommandBarsOptions()->bShowTextBe lowIcons = TRUE;

is setting text below the icons in the toolbar. Then I do not have to use the ToolbarTheme class. But, is there any easy mothod to specify a custom with of the toolbar buttons - as I got with the ToolbarTheme class?

Best regards,
Frode Gorseth.




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