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

Office 2007 Theme

 Post Reply Post Reply
Author
Message
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Topic: Office 2007 Theme
    Posted: 18 April 2006 at 4:18pm

In Office 12 Beta 1 (as well as any pre-beta or TR version) only the main frame and MDI child windows have the new theme while all dialogs have the OS default theme, with XTP all windows get the new theme. That doesn't look good, there is no contrast.

Also I haven't seen those aqua style buttons anywhere in Office.

Property pages have a wierd background, even ON_WM_CTLCOLOR doesn't work to override it.

Is it possible to disable the theme for dialogs? (Or set the Office 2003 theme)

Please have a look at a property sheet with the Office 2007 theme.

Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2006 at 8:12am

Solved the problem with

XTPSkinManager()->SetAutoApplyNewWindows (FALSE);
sheet.DoModal ();
XTPSkinManager()->SetAutoApplyNewWindows (TRUE);

But it would be nice if I could tell the Skin Manager only to skin frame windows (CFrameWnd and derived).

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2006 at 3:52pm

Hi,

You can call XTPSkinManager()->SetAutoApplyNewWindows (FALSE);

after main frame created.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2006 at 3:27am

That might work for SDI applications, but not for MDI, the child windows don't get skinned if I call XTPSkinManager()->SetAutoApplyNewWindows (FALSE); after the main frame was created.

XTPSkinManager()->OnlySkinFrameWindows() would be nice

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2006 at 8:34am
ok, we will think about. it.  It just first release of SkinFramework....
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
bambha View Drop Down
Newbie
Newbie


Joined: 19 June 2006
Location: United States
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote bambha Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2006 at 1:31pm
Is it possible to inherit the SkinFramework and custumoze it?
 
I want to apply the skin to whole dialog except the Listbox as i want a black background color and by default for Office 2007 it gives white.
 
I was using OnCtlColor for that and as soon as I apply the skin it just stop working.
Manik Bambha
Back to Top
tNgLoo View Drop Down
Groupie
Groupie


Joined: 21 April 2005
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote tNgLoo Quote  Post ReplyReply Direct Link To This Post Posted: 15 August 2006 at 8:43pm
XTPSkinManager()->ExcludeFromSkin(HWND hwnd)
will be prefer.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 11:30am
Hi,
Added Remove method and GetClassMap() so will be able to remove/add window classes you need to skin...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
bambha View Drop Down
Newbie
Newbie


Joined: 19 June 2006
Location: United States
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote bambha Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 5:48pm

HWND hwnd;

this->GetDlgItem(IDC_CHAT_WRITE, &hwnd);
XTPSkinManager()->Remove(hwnd);
 
gives me a error that cant access Remove as its a private memeber.
 
Using the Q3 version removed the skin on the command bars. They were working fine with blue color os Office2007 and now they are all white. Is that a bug or a change.
 
Please reply as this is urgent.
Manik Bambha
Back to Top
bambha View Drop Down
Newbie
Newbie


Joined: 19 June 2006
Location: United States
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote bambha Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 6:29pm
I figured out the problem but not the solution yet. I guess its a bug in Q3
This works

XTPSkinManager()->LoadSkin(_T("Skins/Office2007.cjstyles"));

XTPSkinManager()->SetAutoApplyNewWindows(TRUE);

CXTPPaintManager::SetTheme(xtpThemeOffice2003);

 

but as soon you change the theme to 2007 it starts all the weird stuff. Another thing is now the toolbar dont get resized with

RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);

I hope you come with a explaination
Manik Bambha
Back to Top
bambha View Drop Down
Newbie
Newbie


Joined: 19 June 2006
Location: United States
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote bambha Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 7:05pm
Q3 messed up my whole code. I have a release in 1 week and i  deleted Q2. Please give me Q2 back. I dont have time to work with you new version.
Please help
 
Manik Bambha
Back to Top
tNgLoo View Drop Down
Groupie
Groupie


Joined: 21 April 2005
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote tNgLoo Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 9:09pm
Back to Top
bambha View Drop Down
Newbie
Newbie


Joined: 19 June 2006
Location: United States
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote bambha Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 9:21pm
tNgLoo do you have the last version 1020 or Q2? I need that as I have to meet the deadline and I deleted the cod eby mistake. Please email me as I am in deep trouble.
Manik Bambha
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 9:41pm

Hi,

Please send email to sales@codejock.com about 10.2 version.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2006 at 9:50pm
ps. Try to move XTPSkinManager()->LoadSkin(_T("Skins/Office2007.cjstyles")); to mainframe constructor. It must be called before any window has been created.
 
Also if you use Office2007 for toolbars, you have to load dll file style with its resources.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.