Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Progress Bar Marque not working with Skin
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Progress Bar Marque not working with Skin

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: Progress Bar Marque not working with Skin
    Posted: 25 January 2011 at 4:40am
Hi, I'm using the MFC version of XTP version 13.4
My app is 32 bit running on Windows 7 64-bit. Visual Studio 2010.

When I enable Office 2007 skins in my dialog-based app the progress bar marque style is not working. If I comment out the call to

XTPSkinManager()->LoadSkin(...

the marque progress bar works.


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: 25 January 2011 at 7:18am
Hello,

Do you call LoadSkin before you create dialog ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2011 at 2:58pm
 
XTPSkinManager()->LoadSkin(_T("V:\\Codejock\\MFC\\XtremeToolkitPro\\Source\\SkinFramework\\Styles\\Office2007.cjstyles"),_T("NormalBlack.ini"));
XTPSkinManager()->EnableCurrentThread();    
//XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics);
XTPSkinManager()->SetAutoApplyNewThreads(FALSE);
CXTPPaintManager::SetTheme(xtpThemeOffice2007);


Above is what I'm doing. The dialog appears skinned and all that, just the marquee is not working. When I comment out the call to LoadSkin, the marquee works.
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: 31 January 2011 at 7:57am
Hi,

But do you call it in constructor of this dialog ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2011 at 8:13am
No, I call this once in InitInstance in my application.

Do I need to load the skin in every dialog? I don't think so. As I said, the dialog IS skinned, but the marquee does not work.
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: 02 February 2011 at 8:16am
Hello,

Please send PBM_SETMARQUEE message manually:

m_wndProgress.ModifyStyle(0, PBS_MARQUEE);
m_wndProgress.SendMessage(PBM_SETMARQUEE, 1, 100);

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.031 seconds.