Print Page | Close Window

Progress Bar Marque not working with Skin

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17808
Printed Date: 19 June 2025 at 3:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Progress Bar Marque not working with Skin
Posted By: MacW
Subject: Progress Bar Marque not working with Skin
Date 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.





Replies:
Posted By: Oleg
Date Posted: 25 January 2011 at 7:18am
Hello,

Do you call LoadSkin before you create dialog ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: MacW
Date 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.


Posted By: Oleg
Date Posted: 31 January 2011 at 7:57am
Hi,

But do you call it in constructor of this dialog ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: MacW
Date 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.


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net