TabBtn Object
Parents Children Properties Methods Events
Purpose: To tab a SubForm.

Description

TabBtn objects are associated with SubForms which are positioned on top of one another. When the user clicks on a TabBtn, the corresponding SubForm is brought to the top and given the focus.

TabBar and TabBtn objects were implemented before Windows provided direct support for tabbed dialogs, and have been superceded by TabControl and TabButton objects. Please use these instead.

The appearance of a TabBtn is determined by its EdgeStyle, Border and Caption properties. These take their defaults from the SubForm with which the TabBtn is associated. Thus there is generally no need to specify them. BCol also defaults to that of its associated SubForm.

The position of a TabBtn is normally determined by its parent TabBar and its default size is fixed (22 x 80 pixels), and not related to the size of its Caption. These defaults can be overridden using the Posn and Size properties.

A SubForm is associated with a TabBtn by setting the TabObj property of the SubForm to the name of, or ref to, the TabBtn. The TabObj property of the TabBtn is a read-only property that contains the name of, or ref to, the associated SubForm.