Print Page | Close Window

SetSchema does not work?

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=20225
Printed Date: 18 June 2025 at 1:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetSchema does not work?
Posted By: Hmbucker
Subject: SetSchema does not work?
Date Posted: 15 October 2012 at 4:26am
Hi,

I am using Toolkit Pro in an activeX which is used by other applications as a plug in.
When I call the function LoadSkin(my_skin); the my_skin is imposed not only on the ActiveX control, but also on the Containing application which is not what I want (the result of this is that the containing app becomes ugly because of the owner drawn components)
So I decided to try CreateSchema + SetWindowTheme so that I could set the skin on all components used individually.
Unfortunately this only seems to work after doing the LoadSkin first???
Then I tried to derive a button in order to be able to draw png files on it.  To my surprise, the skin from the LoadSkin function overrules the WindowTheme so that the wrong skin is drawn first and then my png is drawn on top of it?

Is there a solution for this problem somehow?

Thanks in advance.
Koen



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