Print Page | Close Window

TabControl beginner question

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14232
Printed Date: 28 April 2024 at 10:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControl beginner question
Posted By: chrisABC
Subject: TabControl beginner question
Date 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



Replies:
Posted By: jpbro
Date 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 - uploads/20090509_110820_TabControlSetPa.zip


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Boris
Date 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



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