SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines whether tab text is dropped if it doesn't fit.
Get | |||
VB | Boolean = object.DropText As Boolean | ||
Put | |||
VB | object.DropText = Boolean As Boolean |
object
Boolean
Defines whether tab text is dropped if it doesn't fit.
Boolean | Description |
---|---|
True | Tab text is dropped if it doesn't fit. |
False | Tab text is always displayed. |
The DropText property defines whether tab text is dropped if it doesn't fit.
If the DropText property is set to True, the tab text defined for a tab will only be visible if it can be displayed in its entirety. If it is truncated, possibly because the tab control has insufficient space to display tabs with their best width, the text is not displayed.
Important: This property should only be set to True if all tabs have been defined with a tab graphic (see Tab.Image property). Otherwise an empty tab is displayed which is not desirable.
If the tab text is dropped, the tab graphic is still visible.
This example shows a resizable form with a tab control aligned to the top of its client area. As the form is resized and made smaller, the tab text is eventually dropped and only the tab graphics are visible.
Private Sub Form_Load() Dim TabIndex As Integer Dim PicObject As StdPicture ' make sure Form1.BorderStyle is set to 2 - Sizable Set PicObject = LoadPicture("...path-to-bitmap...") With SftTabs1 .Align = vbAlignTop .Tabs.DropText = True For TabIndex = 0 To .Tabs.Count - 1 Set .Tab(TabIndex).Picture = PicObject Next End With End Sub
See Also SftTabsTabs Object | Object Hierarchy