Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.Font Property

Defines the font used to display tab text.

Syntax

Get
VBSet refFontObj = object.Font As IFontDisp
Put
VBobject.Font = refFontObj As IFontDisp
PutRef
VBSet object.Font = refFontObj As IFontDisp

object

A SftTabs object.

refFontObj

A reference to a Font object.

Comments

The Font property defines the font used to display tab text.

All tabs use the same font. Individual tabs cannot override the font used.

The font weight (Bold property) is ignored and a "Normal" font is used. The Tabs.BoldActive property can be used to define a bold font attribute for the currently active tab.

A tab control which displays tab text using a rotated font (i.e., a vertical tab control) must use a TrueType font. If a font other than a TrueType font is defined, SftTabs/OCX automatically uses an Arial, 8 point font instead.

Using PutRef (see Syntax above) the control will use the reference to the Font object. If the Font object is later changed, this will also affect the font used by the control. Using Put instead, causes the control to create a copy of the Font object. If the Font object is later changed, this will not affect the font used by the control as it uses a copy of the object. Because of the additional overhead and the increased resource use of Put, PutRef is the preferred method.

Example

Private Sub Form_Load()
    SftTabs1.Font.Name = "Arial"
    SftTabs1.Font.Size = 10
    SftTabs1.Font.Italic = True
End Sub

See Also SftTabs Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.