Print Page | Close Window

TabControl BackColor, SkinFramework & Label

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=10813
Printed Date: 11 December 2024 at 6:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControl BackColor, SkinFramework & Label
Posted By: jpbro
Subject: TabControl BackColor, SkinFramework & Label
Date 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




Replies:
Posted By: Oleg
Date Posted: 28 May 2008 at 1:50pm
Hi,
 
Do you have Label.Transparent = True ?


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


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



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




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