Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - ActiveX Textcontrol skinning problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ActiveX Textcontrol skinning problem

 Post Reply Post Reply
Author
Message
Dieter View Drop Down
Groupie
Groupie


Joined: 22 July 2006
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dieter Quote  Post ReplyReply Direct Link To This Post Topic: ActiveX Textcontrol skinning problem
    Posted: 19 June 2008 at 11:28am
Hi, I want to use the skinning framework of the Codejock library in an MFC application (Codejock MFC 12.0.0) which is using a third party ActiveX Textcontrol (textcontrol.com).
But I have some problems with the textcontrol:
The scrollbars of the textcontrol aren't skinned and don't work.

Is there any possibility to get it working.
I don't have the source code of the Textcontrol.
AFAIK, the Textcontrol uses uxtheme.dll.

BTW, I tested the Textcontrol with the trial ActiveX version of the Codejock library and I get it working with a VisualBasic sample of the Codejock library (Samples\SkinFramework\Vb\SkinControls) without any problems.
The Textcontrol Scrollbars are skinned and working.




Dieter

Product: Xtreme ToolkitPro version 15.2.1
Platform: Windows XP (32bit) - SP 3
Language: Visual C++ 6.0, Visual Studio 2010
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: 19 June 2008 at 2:07pm

Hi,

Maybe you need add manifest in your application.
try to add textcontrol to our MFC SkinCotnrols sample and check
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Dieter View Drop Down
Groupie
Groupie


Joined: 22 July 2006
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dieter Quote  Post ReplyReply Direct Link To This Post Posted: 19 June 2008 at 5:17pm
I've a manifest in my application and I tested it also with the MFC SkinControl sample.
But I'm sorry, in the MFC SkinControl sample it is also not working.

I tested also the RichEditControl which comes with Windows XP.
It's the same:
In the VisualBasic ActiveX sample ActiveX the RichEditControl is correctly skinned, but in the MFC SkinControl sample the scrollbars aren't working.

For now, I've deactivated skinning for the Textcontrol with :
XTPSkinManager()->Remove(m_TX4OLE.GetSafeHwnd());
Or should I use ExcludeModule?

But it would be great if you have a solution for me.
Dieter

Product: Xtreme ToolkitPro version 15.2.1
Platform: Windows XP (32bit) - SP 3
Language: Visual C++ 6.0, Visual Studio 2010
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 June 2008 at 1:50am
Hi,
 
Problem that in VB you load skin after this ocx loaded.
 
as workaround you can reload skin in MFC in OnInitDialog:
 
 XTPSkinManager()->LoadSkin(m_strStylesPath + _T("WinXP.Luna.cjstyles"), _T("NormalBlue.ini")); 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Dieter View Drop Down
Groupie
Groupie


Joined: 22 July 2006
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dieter Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2008 at 3:17am
Hi Oleg,

Originally posted by oleg oleg wrote:

Hi,
Problem that in VB you load skin after this ocx loaded.
 as workaround you can reload skin in MFC in OnInitDialog:
  XTPSkinManager()->LoadSkin(m_strStylesPath + _T("WinXP.Luna.cjstyles"), _T("NormalBlue.ini")); 


This solved my problem!
Thank you very much!


Dieter

Product: Xtreme ToolkitPro version 15.2.1
Platform: Windows XP (32bit) - SP 3
Language: Visual C++ 6.0, Visual Studio 2010
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.