Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - TabControl BackColor, SkinFramework & Label
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControl BackColor, SkinFramework & Label

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

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: TabControl BackColor, SkinFramework & Label
    Posted: 28 May 2008 at 1:36pm
Hi,

I have a TabControl with a TabControlPage on it (no borders/tabs for wizard style). There is also a SkinFramework on a different form that skins the project. Lastly, I've placed a CJ Label on the form with EnableMarkup = True.

I'm trying to get the backcolor of the label to match the backcolor of the tabcontrolpage.

I've tried:


Me.Label1.Backcolor = Me.TabControlPage1(0).BackColor


and

Me.Label1.Backcolor = me.TabControl1.PaintManager.ColorSet.PaneFace


Without success. Here's the result:



Also, If possible, I'd like to be able to set the tabcontrolpage backcolor to white...I've tried:


Me.TabControlPage1(0).BackColor = vbWhite


But it doesn't seem to work. Any suggestions?

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

Language: Visual Basic 6.0 SP6

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: 28 May 2008 at 1:50pm
Hi,
 
Do you have Label.Transparent = True ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2008 at 1:57pm
Hi Oleg,

    In this case, Transparent = True will work, but based on a previous thread it won't work if I put the Label on a UserControl...Is there are way to get the exact background color from the PaintManager? Also, is there a way to explicitly set the TabControlPage backcolor? Me.TabControlPage.Backcolor = vbWhite doesn't seem to work.

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

Language: Visual Basic 6.0 SP6

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2008 at 2:02pm
Hi Oleg,

You can ignore my problem about the TabControlPage backcolor...I was setting the color for the wrong page. Sorry!
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.156 seconds.