Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - SetCustomTheme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetCustomTheme

 Post Reply Post Reply
Author
Message Reverse Sort Order
Frode View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Location: Norway
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Frode Quote  Post ReplyReply Direct Link To This Post Topic: SetCustomTheme
    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.

Back to Top
Frode View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Location: Norway
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Frode Quote  Post ReplyReply Direct Link To This Post 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...

2004-04-22_171757_ToolbarTheme.zip

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.110 seconds.