Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - TabControl beginner question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControl beginner question

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

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Topic: TabControl beginner question
    Posted: 07 May 2009 at 4:10am
I have just started to look at the TabControl, so here are some easy questions for you :-)

1. The TabControl seems to work as expected, on its own.   So what is the TabControlPAGE for ?

2. Can I put a label on the tab so that it will appear on every tab?
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2009 at 11:08am
Hey Chris,

1. I'm not sure what all the benefits of the TabControlPage (I know they are useful for background images), but one benefit that will help with your question #2 is:

2. You can use the SetParent API to move controls from one TabControlPage to another when the tab changes...One caveat - this won't work with the Label control since it is a windowless (no Hwnd property) control. You can however print your text to a PictureBox (or put a label on a PictureBox) and move that control to other TabControlPages. Here's a sample:

uploads/20090509_110820_TabControlSetPa.zip
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

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

Joined: 21 June 2007
Location: United Kingdom
Status: Offline
Points: 179
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boris Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2009 at 6:38am
If you want to use controls such as checkbox and label that support transparency you will need the TabControlPage to make that work, particularly when using Office2007 styles.
 
Regards
Boris
Boris

Product: Xtreme SuitePro (ActiveX) version 16.4.0 16.3.1

Platform: Windows XP (32bit) - SP 3

Language: Visual Basic 6.0 SP6

VS 2005-2008-2010-2013
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.125 seconds.