TabControl beginner question |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
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
|
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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 |
|
Boris
Senior Member Joined: 21 June 2007 Location: United Kingdom Status: Offline Points: 179 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |