Applying Themes to Dialogs |
Post Reply |
Author | |
gibbo
Groupie Joined: 04 January 2007 Location: United Kingdom Status: Offline Points: 47 |
Post Options
Thanks(0)
Posted: 01 February 2007 at 6:07am |
Hi All,
I've started converting an existing VC6 application to use the Ribbon Bar. So far so good.
The problem is that now, that the dialog boxes that are displayed look dated and old compared to the new interface. So my question is, is there an easy way to apply the current theme to any dialog or property sheet?
If so how would I go about it..
Many thanks
Wayne
|
|
Gibbo
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Check samples from SkinFramework folder, may be it will work for you.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
gibbo
Groupie Joined: 04 January 2007 Location: United Kingdom Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Hi, The SkinFramework looks good. But will it work with the Ribbon theme and the themes it has, I.E. Blue, Black, Silver, Aqua ?
Thanks
|
|
Gibbo
|
|
gibbo
Groupie Joined: 04 January 2007 Location: United Kingdom Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Any Ideas???
|
|
Gibbo
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes, it will work.
Blue theme in Office2007.cjstyles and black and silver in Vista.cjstyles
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
gibbo
Groupie Joined: 04 January 2007 Location: United Kingdom Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Firstly thanks for replying..
Sorry I don't quite understand what you mean, do you have a code fragment?
|
|
Gibbo
|
|
gibbo
Groupie Joined: 04 January 2007 Location: United Kingdom Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Ok, did some searching.. Now understand a bit more :D
I have to use the following:
XTPSkinManager()->LoadSkin(pTheme->strResourcePath, pThemeInfo->csIniFileName);
Is there anyway that the Styles can be loaded from a resource instead of a file?
|
|
Gibbo
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Add #include "SkinFramework\Styles\Office2007\Office2007.rc" to your .rc2 file. You may have to add ...\Source\SkinFramework\Styles\Office2007 to your source directories. Then load the skin from your executable: CString sExeName = AfxGetApp()->m_pszExeName; sExeName += _T(".exe"); LoadSkin (sExeName, ...) |
|
Codejock support
|
|
jkaufmann
Newbie Joined: 18 December 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
I have a problem with applying themes to dialogs, so I figured this was the best thread to post...
I have a dialog running in a CFormView running great except that whenever I right click on a CEdit, the menu that comes up is the old and outdated style. The menu is the default one that just has Cut/Copy/Paste/etc. I'd rather not have to override the menu popup w/ my own because this issue is in every CEdit in my application. Any suggestions? OK, I just looked and the same unskinned popup menu shows up for the CEdit's that are embedded into CXTPPropertyGrid too. |
|
gibbo
Groupie Joined: 04 January 2007 Location: United Kingdom Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Hi ABuenger,
Thanks for the information. A few small tweaks to the Skin Resources and I now have the Ribbonbars and skins working .
Cheers
Gibbo
|
|
Gibbo
|
|
gibbo
Groupie Joined: 04 January 2007 Location: United Kingdom Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Hi
Just a thought, why isn't there an example of how to incorporate skins and ribbonbars.. Think it would help a lot of newbies..
|
|
Gibbo
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |