Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Problem with TabControl and SkinFramework
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with TabControl and SkinFramework

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

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Topic: Problem with TabControl and SkinFramework
    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:

Visual Basic 6.0 SP6
SkinFramework 10.3.1
TabControl 10.3.1

Any help with this would be great.

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: 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
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2006 at 11:00am
Cool. Thanx!
End of December is very soon. 
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.157 seconds.