Print Page | Close Window

Problem with TabControl and SkinFramework

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=5764
Printed Date: 30 January 2025 at 8:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with TabControl and SkinFramework
Posted By: Jean
Subject: Problem with TabControl and SkinFramework
Date Posted: 12 December 2006 at 7:49am

I like to give my VB6 application the blue Windows XP Luna look by using the SkinFramework Control.
That's why I set the color property of my tabcontrol to xtpTabColorWinXP.
With this setting the active tab of a TabControl has NOT the same backcolor like the form has and on top there's a yellow/orange line. That's fine, it's the look of Windows XP.
But if I place a frame on this tab, it has the wrong backcolor. It takes the color of the form and not the brighter color of the tab. Please take a look at the screenshot.

What am I doing wrong? Do I expect too much from SkinFramework? Is there a solution?
EnableThemeDialogTexture doesn't seem to help here.

Sample app:
Place the following controls on a form: TabControl, SkinFrameWork, 2 Frames
Copy the file 'WinXP.Luna.cjstyles' from the CodeJock sample folder to the application folder.
Code:

Private Sub Form_Load()
  TabControl1.Color = xtpTabColorWinXP
  TabControl1.PaintManager.ClientMargin.SetRect 10, 10, 10, 10

  TabControl1.InsertItem 0, "Item 0", Frame1.hWnd, 0
  TabControl1.InsertItem 1, "Item 1", Frame2.hWnd, 0

  SkinFramework1.ApplyWindow Me.hWnd
  SkinFramework1.ApplyOptions = SkinFramework1.ApplyOptions Or xtpSkinApplyMetrics
  SkinFramework1.LoadSkin App.Path & "\WinXP.Luna.cjstyles", "Normalblue.ini"
End Sub

Screenshot:
http://imageshack.us">

Visual Basic 6.0 SP6
SkinFramework 10.3.1
TabControl 10.3.1

Any help with this would be great.




Replies:
Posted By: Oleg
Date Posted: 12 December 2006 at 9:55am
Hi,
 
For 10.4 we added special TabControlPage control that will do it.


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


Posted By: Jean
Date Posted: 19 December 2006 at 11:00am
Cool. Thanx!
End of December is very soon. 



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