Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Prevent SkinFramework Changing MarkupLabel Color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Prevent SkinFramework Changing MarkupLabel Color

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: Prevent SkinFramework Changing MarkupLabel Color
    Posted: 12 July 2016 at 9:58pm
Hi, it's been a while since I've needed to ask a CJ question here, but it's nice to be back :)

I have a form with a SkinFramework control, and a UserControl with a MarkupLabel control. The SkinFramework always seems to change the background colour of the MarkupLabel control, making the Transparent property fail to work.

The SkinFramework.ApplyOptions property includes the xtpSkinApplyColors flag (which I need for other controls) - removing it solves the MarkupLabel BackColor problem, but introduces problems elsewhere.

Using RemoveWindow MarkupLabel.hWnd doesn't work, nor does RemoveWindowClass "AfxOleControl42u" (as Spy++ reports the MarkupLabel window class to be).

Anyone have any experience here and know how to prevent the SkinFramework control from overriding the MarkupLable BackColor property so that transparency will work?

Thanks in advance for any help.
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2016 at 5:00am
Hello jpbro,

It looks like known issue. SkinFramework hooks system call GetSysColor(int nIndex), but this function gives only index of system color, and doesn't give info about what exactly window/control calls GetSysColor().

Unfortunately we haven't yet solved this problem.

Regards,
 Lebed Oleksandr
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2016 at 8:11am
Hi olebed! Thanks for the prompt follow-up. Hope it's something that can be solved/worked around at some point.


Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

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