Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Codejock Tab Control Appearance
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Codejock Tab Control Appearance

 Post Reply Post Reply
Author
Message
Skreen View Drop Down
Groupie
Groupie


Joined: 23 March 2013
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote Skreen Quote  Post ReplyReply Direct Link To This Post Topic: Codejock Tab Control Appearance
    Posted: 02 August 2013 at 11:16am
This is the current styling I have on a Codejock Tab Control



And this is the styling I would like where the height of the selected tab is slightly higher than the inactive tabs.



As you will notice there is a slight difference in the tab height of the selected tab and the inactive tabs. Is it possible to control the height of tabs like this while retaining the same styling as shown?

After adding a Suite Controls 16.2.0 Tab Control in a VB6 to a form, here is the code I am using to style the appearance of the tab control.

Private Sub Form_Load()
    
    TabPage1.BackColor = RGB(255, 255, 255)
    TabPage2.BackColor = RGB(255, 255, 255)
    
    TabControl1.DrawFocusRect = False
    
    TabControl1.PaintManager.HotTracking = True
    
    TabControl1.PaintManager.Appearance = xtpTabAppearanceFlat
    TabControl1.PaintManager.Color = xtpTabColorDefault
    
    TabControl1.PaintManager.ColorSet.FrameBorder = RGB(165, 172, 181)
    TabControl1.PaintManager.ColorSet.ButtonNormal = RGB(212, 216, 221)
    TabControl1.PaintManager.ColorSet.ButtonSelected = RGB(255, 255, 255)
    TabControl1.PaintManager.ColorSet.ButtonHighlighted = RGB(228, 233, 237)
    TabControl1.PaintManager.ColorSet.HighlightText = RGB(0, 0, 0)
    
    TabControl1.PaintManager.HeaderMargin.Top = 3
    TabControl1.PaintManager.HeaderMargin.Left = 3
    
    TabControl1.PaintManager.ButtonMargin.Top = 3
    TabControl1.PaintManager.ButtonMargin.Bottom = 3
    
End Sub
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.141 seconds.