Office 2003 theme
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=403
Printed Date: 12 December 2024 at 7:34am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Office 2003 theme
Posted By: forsmtp
Subject: Office 2003 theme
Date Posted: 31 January 2004 at 1:04pm
Hello,
Could I implement Office 2003 theme with look like this http://www.codejock.com/products/commandbars/images/commandbars.gif - http://www.codejock.com/products/commandbars/images/commandb ars.gif at the win2K machine?
I had trying it without any success.
I just got theme look like this http://forum.codejock.com/uploads/forsmtp/Office2003theme_.zip - Office2003theme_.zip - gray - but I need blue style?
Please help me!
|
Replies:
Posted By: MikeV
Date Posted: 01 February 2004 at 3:17am
I think the problem you would have doing an Office 2003 "look" on a Windows 2000 computer is that the color scheme assigned to the CommandBar is coming from the XP color schemes that are only available in connection with the Windows XP Style. It looks to me that if you choose the xpThemeOffice2003 on a Win 2000 computer, CommandBar will use colors from the currently select Appearance scheme (Try changing your Apperance Scheme to "Lilac" and see what it looks like.) and do it's best to simulate the colors.
Unless you can specify the colors the CommandBar uses for the various themes, and I haven't seen anything in the ActiveX version to suggest you can, then I don't think it's going to be possible.
|
Posted By: forsmtp
Date Posted: 01 February 2004 at 4:42am
MikeV wrote:
CommandBar will use colors from the currently select Appearance scheme (Try changing your Apperance Scheme to "Lilac" and see what it looks like.) and do it's best to simulate the colors.
|
I had try that, but it absolutely not acceptable look! http://forum.codejock.com/uploads/forsmtp/E53_blue.zip - E53_blue.zip
Can anyone from support or development team answer?
|
Posted By: Sven
Date Posted: 01 February 2004 at 7:28am
forsmtp wrote:
Could I implement Office 2003 theme with look like this http://www.codejock.com/products/commandbars/images/commandbars.gif - http://www.codejock.com/products/commandbars/images/commandb ars.gif at the win2K machine? |
This Office 2003 theme is only available on Windows XP with activated visual styles. There is nothing you can do except upgrade from Windows 2000 to XP.
|
Posted By: forsmtp
Date Posted: 01 February 2004 at 2:11pm
Sven wrote:
forsmtp wrote:
Could I implement Office 2003 theme with look like this http://www.codejock.com/products/commandbars/images/commandbars.gif - http://www.codejock.com/products/commandbars/images/commandb ars.gif at the win2K machine? |
This Office 2003 theme is only available on Windows XP with activated visual styles. There is nothing you can do except upgrade from Windows 2000 to XP.
|
Do we have any other way for implementing Office 2003 theme for win2k users??
|
Posted By: Sven
Date Posted: 01 February 2004 at 4:34pm
There is no way. Install MS Office 2003 on Windows 2000 and you will see, that Office 2003 looks like the screenshot in http://forum.codejock.com/uploads/forsmtp/Office2003theme_.zip - Office2003theme_.zip .
|
Posted By: Ark42
Date Posted: 27 March 2004 at 12:02am
class CXTPOffice2003ThemeEx : public CXTPOffice2003Theme
{
public:
CXTPOffice2003ThemeEx(BOOL bGreyToBlue = TRUE, BOOL bYellowHighlight = FALSE);
BOOL m_bGreyToBlue, m_bYellowHighlight;
protected:
virtual void RefreshMetrics();
};
CXTPOffice2003ThemeEx::CXTPOffice2003ThemeEx(BOOL bGreyToBlue, BOOL bYellowHighlight)
{
m_bGreyToBlue = bGreyToBlue;
m_bYellowHighlight = bYellowHighlight;
RefreshMetrics();
}
void CXTPOffice2003ThemeEx::RefreshMetrics()
{
CXTPOffice2003Theme::RefreshMetrics();
if( !m_bLunaTheme ) {
CXTPColorManager *pClrMgr = XTPColorManager();
COLORREF btn = pClrMgr->GetColor(COLOR_BTNFACE);
if( m_bGreyToBlue && (btn == RGB(192, 192, 192) || btn == RGB(212, 208, 200)) ) {
m_clrDockBarDark = RGB(158, 190, 245);
m_clrDockBarLight = RGB(196, 218, 250);
m_clrCommandBarDark = RGB(129, 169, 226);
m_clrCommandBarLight = RGB(221, 236, 254);
m_clrPopupDark = RGB(227, 239, 255);
m_clrPopupLight = RGB(147, 181, 231);
m_crlToolbarShadow = RGB(59, 97, 156);
m_crlFloatingGripper = RGB(42, 102, 201);
m_crlExpandNormalDark = RGB(0, 53, 145);
m_crlExpandNormalLight = RGB(117, 166, 241);
m_clrMenuExpandedDark = RGB(121, 161, 220);
m_clrMenuExpandedLight = RGB(203, 221, 246);
m_clrCircleDark = RGB(129, 169, 226);
m_clrCircleLight = RGB(227, 239, 254);
m_clrStatusPane = RGB(221, 221, 221);
m_bLunaTheme = TRUE;
pClrMgr->SetColor(0, RGB(0, 0, 0));
pClrMgr->SetColor(1, RGB(0, 78, 152));
pClrMgr->SetColor(2, RGB(0, 84, 227));
pClrMgr->SetColor(3, RGB(122, 150, 223));
pClrMgr->SetColor(4, RGB(255, 255, 255));
pClrMgr->SetColor(5, RGB(255, 255, 255));
pClrMgr->SetColor(6, RGB(0, 0, 0));
pClrMgr->SetColor(7, RGB(0, 0, 0));
pClrMgr->SetColor(8, RGB(0, 0, 0));
pClrMgr->SetColor(9, RGB(255, 255, 255));
pClrMgr->SetColor(10, RGB(212, 208, 200));
pClrMgr->SetColor(11, RGB(212, 208, 200));
pClrMgr->SetColor(12, RGB(128, 128, 128));
pClrMgr->SetColor(13, RGB(49, 106, 197));
pClrMgr->SetColor(14, RGB(255, 255, 255));
pClrMgr->SetColor(15, RGB(236, 233, 216));
pClrMgr->SetColor(16, RGB(172, 168, 153));
pClrMgr->SetColor(17, RGB(172, 168, 153));
pClrMgr->SetColor(18, RGB(0, 0, 0));
pClrMgr->SetColor(19, RGB(216, 228, 248));
pClrMgr->SetColor(20, RGB(255, 255, 255));
pClrMgr->SetColor(21, RGB(113, 111, 100));
pClrMgr->SetColor(22, RGB(251, 248, 231));
pClrMgr->SetColor(23, RGB(0, 0, 0));
pClrMgr->SetColor(24, RGB(255, 255, 225));
pClrMgr->SetColor(25, RGB(181, 181, 181));
pClrMgr->SetColor(26, RGB(0, 0, 128));
pClrMgr->SetColor(27, RGB(61, 149, 255));
pClrMgr->SetColor(28, RGB(0, 0, 0));
pClrMgr->SetColor(29, RGB(0, 0, 0));
pClrMgr->SetColor(30, RGB(158, 190, 245));
pClrMgr->SetColor(31, RGB(255, 238, 194));
pClrMgr->SetColor(32, RGB(0, 0, 128));
pClrMgr->SetColor(33, RGB(254, 128, 62));
pClrMgr->SetColor(34, RGB(144, 157, 178));
pClrMgr->SetColor(35, RGB(197, 194, 184));
pClrMgr->SetColor(36, RGB(255, 192, 111));
pClrMgr->SetColor(37, RGB(0, 0, 128));
pClrMgr->SetColor(38, RGB(39, 65, 118));
pClrMgr->SetColor(39, RGB(106, 140, 203));
pClrMgr->SetColor(40, RGB(109, 150, 208));
pClrMgr->SetColor(41, RGB(246, 246, 246));
pClrMgr->SetColor(42, RGB(230, 227, 210));
pClrMgr->SetColor(43, RGB(0, 45, 150));
pClrMgr->SetColor(44, RGB(0, 0, 0));
pClrMgr->SetColor(45, RGB(0, 0, 0));
pClrMgr->SetColor(46, RGB(0, 0, 0));
pClrMgr->SetColor(47, RGB(0, 0, 0));
pClrMgr->SetColor(48, RGB(218, 233, 255));
pClrMgr->SetColor(49, RGB(129, 126, 114));
pClrMgr->SetColor(50, RGB(0, 0, 128));
pClrMgr->SetColor(51, RGB(216, 231, 252));
pClrMgr->SetColor(52, RGB(158, 190, 245));
pClrMgr->SetColor(53, RGB(203, 225, 252));
pClrMgr->SetColor(54, RGB(0, 45, 150));
pClrMgr->SetColor(55, RGB(196, 218, 250));
} else if(m_bYellowHighlight) {
pClrMgr->SetColor(31, RGB(255, 238, 194));
pClrMgr->SetColor(33, RGB(254, 128, 62));
pClrMgr->SetColor(36, RGB(255, 192, 111));
m_bLunaTheme = TRUE;
}
}
}
//Then use like this:
CXTPPaintManager::SetCustomTheme(new CXTPOffice2003ThemeEx());
//Instead of like:
CXTPPaintManager::SetTheme(xtpThemeOffice2003);
|
Posted By: hoanganh
Date Posted: 15 October 2004 at 1:16pm
private Sub ThemeOffice2003Ex() Const COLOR_SCROLLBAR = 0 Const COLOR_3DDKSHADOW = 21 Const COLOR_3DLIGHT = 22 Const COLOR_INFOTEXT = 23 Const COLOR_INFOBK = 24 Const COLOR_HOTLIGHT = 26 Const COLOR_GRADIENTACTIVECAPTION = 27 Const COLOR_GRADIENTINACTIVECAPTION = 28 Const XPCOLOR_CHECKED_TEXT = XPCOLOR_HIGHLIGHT_TEXT Const COLOR_BACKGROUND = 1 Const COLOR_ACTIVECAPTION = 2 Const COLOR_INACTIVECAPTION = 3 Const COLOR_MENU = 4 Const COLOR_WINDOW = 5 Const COLOR_WINDOWFRAME = 6 Const COLOR_MENUTEXT = 7 Const COLOR_WINDOWTEXT = 8 Const COLOR_CAPTIONTEXT = 9 Const COLOR_ACTIVEBORDER = 10 Const COLOR_INACTIVEBORDER = 11 Const COLOR_APPWORKSPACE = 12 Const COLOR_HIGHLIGHT = 13 Const COLOR_HIGHLIGHTTEXT = 14 Const COLOR_BTNFACE = 15 Const COLOR_BTNSHADOW = 16 Const COLOR_GRAYTEXT = 17 Const COLOR_BTNTEXT = 18 Const COLOR_INACTIVECAPTIONTEXT = 19 Const COLOR_BTNHIGHLIGHT = 20 Const XPCOLOR_LABEL = 56 Const XPCOLOR_EDITCTRLBORDER = 53 CommandBars.VisualTheme = xtpThemeOffice2003
CommandBars.SetSpecialColor COLOR_SCROLLBAR, 0 CommandBars.SetSpecialColor COLOR_BACKGROUND, 10841658 CommandBars.SetSpecialColor COLOR_ACTIVECAPTION, 6956042 CommandBars.SetSpecialColor COLOR_INACTIVECAPTION, 8421504 CommandBars.SetSpecialColor COLOR_MENU, 13160660 CommandBars.SetSpecialColor COLOR_WINDOW, 16777215 CommandBars.SetSpecialColor COLOR_WINDOWFRAME, 0 CommandBars.SetSpecialColor COLOR_MENUTEXT, 0 CommandBars.SetSpecialColor COLOR_WINDOWTEXT, 0 CommandBars.SetSpecialColor COLOR_CAPTIONTEXT, 16777215 CommandBars.SetSpecialColor COLOR_ACTIVEBORDER, 13160660 CommandBars.SetSpecialColor COLOR_INACTIVEBORDER, 13160660 CommandBars.SetSpecialColor COLOR_APPWORKSPACE, 8421504 CommandBars.SetSpecialColor COLOR_HIGHLIGHT, 6956042 CommandBars.SetSpecialColor COLOR_HIGHLIGHTTEXT, 16777215 CommandBars.SetSpecialColor COLOR_BTNFACE, 16105375 CommandBars.SetSpecialColor COLOR_BTNSHADOW, 14964742 CommandBars.SetSpecialColor COLOR_GRAYTEXT, 8421504 CommandBars.SetSpecialColor COLOR_BTNTEXT, 0 CommandBars.SetSpecialColor COLOR_INACTIVECAPTIONTEXT, 13160660 CommandBars.SetSpecialColor COLOR_BTNHIGHLIGHT, 16777215 CommandBars.SetSpecialColor COLOR_3DDKSHADOW, 4210752 CommandBars.SetSpecialColor COLOR_3DLIGHT, 14147555 CommandBars.SetSpecialColor COLOR_INFOTEXT, 0 CommandBars.SetSpecialColor COLOR_INFOBK, 14811135 CommandBars.SetSpecialColor COLOR_HOTLIGHT, 8388608 CommandBars.SetSpecialColor COLOR_GRADIENTACTIVECAPTION, 15780518 CommandBars.SetSpecialColor COLOR_GRADIENTINACTIVECAPTION, 0 CommandBars.SetSpecialColor XPCOLOR_TOOLBAR_FACE, 16105375 CommandBars.SetSpecialColor XPCOLOR_HIGHLIGHT, 12775167 CommandBars.SetSpecialColor XPCOLOR_HIGHLIGHT_BORDER, 14898176 CommandBars.SetSpecialColor XPCOLOR_HIGHLIGHT_PUSHED, 4096254 CommandBars.SetSpecialColor XPCOLOR_HIGHLIGHT_CHECKED, 7323903 CommandBars.SetSpecialColor XPCOLOR_HIGHLIGHT_CHECKED_BORDER, 14898176 CommandBars.SetSpecialColor XPCOLOR_ICONSHADDOW, 10325384 CommandBars.SetSpecialColor XPCOLOR_GRAYTEXT, 10921638 CommandBars.SetSpecialColor XPCOLOR_TOOLBAR_GRIPPER, 14964742 CommandBars.SetSpecialColor XPCOLOR_SEPARATOR, 15903360 CommandBars.SetSpecialColor XPCOLOR_DISABLED, 9276813 CommandBars.SetSpecialColor XPCOLOR_MENUBAR_FACE, 16251129 CommandBars.SetSpecialColor XPCOLOR_MENUBAR_EXPANDED, 12699852 CommandBars.SetSpecialColor XPCOLOR_MENUBAR_BORDER, 6710886 CommandBars.SetSpecialColor XPCOLOR_MENUBAR_TEXT, 0 CommandBars.SetSpecialColor XPCOLOR_HIGHLIGHT_TEXT, 0 CommandBars.SetSpecialColor XPCOLOR_TOOLBAR_FACE, 16105375 CommandBars.SetSpecialColor XPCOLOR_TOOLBAR_TEXT, 0 CommandBars.SetSpecialColor XPCOLOR_PUSHED_TEXT, 16777215 CommandBars.SetSpecialColor XPCOLOR_TAB_INACTIVE_BACK, 15332087 CommandBars.SetSpecialColor XPCOLOR_TAB_INACTIVE_TEXT, 5592405 CommandBars.SetSpecialColor XPCOLOR_HIGHLIGHT_PUSHED_BORDER, 14898176 CommandBars.SetSpecialColor XPCOLOR_CHECKED_TEXT, 0 CommandBars.SetSpecialColor XPCOLOR_3DFACE, 13160660 CommandBars.SetSpecialColor XPCOLOR_3DSHADOW, 8421504 CommandBars.SetSpecialColor XPCOLOR_EDITCTRLBORDER, 13752539 CommandBars.SetSpecialColor XPCOLOR_FRAME, 8421504 CommandBars.SetSpecialColor XPCOLOR_SPLITTER_FACE, 16053750 CommandBars.SetSpecialColor XPCOLOR_LABEL, 13160660 CommandBars.Options.LunaColors = False CommandBars.RecalcLayout End Sub
|
|