Thursday, August 28, 2008  



 FarPoint Technologies
 (800) 645-5913

 fpsales@fpoint.com



     
 »Tab Pro »Product Tour » Working with Tabs

Previous Working with Tabs Next

Change active tab | Insert, delete, move, swap tabs | Change the tab color | Display text in the tab header | Display pictures | Display pictures in tab header

  Back to Top
 Change active tab
The currently displayed tab, or the tab with the focus, is the active tab. You can change the active tab at design time or at run time.

Tab Pro
Design Time
- Using Visual Basic, click the header of the tab you want to activate with the left mouse button
- Set the Tab property in the Property window at design time.
Run Time
- Set the ActiveTab property to the desired tab in code. Note that tabs are numbered from zero.

  Back to Top
 Insert, delete, clear, move, swap tabs
Tab Pro makes it easy to insert tabs, delete tabs, clear tabs, move tabs, and swap tabs at design time and run time.

Tab Pro
  Design Time
- Using the right mouse button, click the tab header and choose the desired action.

  Run Time
- Set the Tab property to specify the tab.
- Set the appropriate Action property:
  Setting Description
  0 - Insert Inserts new tab
  1 - Delete Deletes specified tab
  2 - Move Moves tab to location specified by TabDest property
  3 - Swap Swaps tab with tab at location specified by TabDest property
  4 - Clear Clears header text, header text fonts, pictures, and color of tab specified by Tab property

 Back to Top
 Change the tab color
Tab ProYou can change the Tab control's colors for individual tabs, the active tab, or all tabs. The ApplyTo property specifies the tabs to which changes are applied.

 Back to Top
 Display text in the tab header
Tab ProYou can display text in the tab header by setting the TabCaption property.

You can place an ampersand (&) in front of a character in the tab caption to create a mnemonic access key that lets users type Alt and the character to make that tab the active tab.

The text can also be aligned top, bottom, center, and left, right center.

  Back to Top
 Display pictures
You can have the tabs in the Tab control display a bitmap, icon, or metafile within the tab. If the picture you choose is smaller than the area in which it will be displayed, the picture is tiled in the tabs.

This Tab control displays a different picture tiled in the active tab. Tab Pro
Pictures in this control are only tiled within the client area, not in the tab header. Tab Pro

 Back to Top
  Display pictures in tab header
You can add pictures (bitmaps, icons, and metafiles) to tab headers and align them within the headers. In addition, you can specify that one color in the picture is displayed as transparent.

Picture displayed in tab header Tab Pro
Picture displayed in tab header with white set to display as transparent Tab Pro


Previous Working with Tabs Next

    
 Have a question?
Have a Question? Ask Us!
Subscribe to the RSS feed!RSS Subscribe
 

 
Learn about the new Roadshow now!

Tab Pro Tour
Tab Pro Overview
Using the Tab Control
Working with Tabs
Working with Pages
Working with Book Mode
Working with Child Controls
Using the Imprint Control
Rate this Tour

Copyright © 1991-2007 FarPoint Technologies, Inc. All rights reserved. All names are property of their respective owners.