Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.NaturalSize Property

Returns the natural height or width of the control.

Syntax

Get
VBSize = object.NaturalSize As Single

object

A SftTabs object.

Size

Returns the natural (or optimal) height or width for the current tab control. The units used depend on the current coordinate system used (usually TWIPS).

Comments

The NaturalSize property returns the natural height or width of the control.

The NaturalSize and NaturalSizePix properties are synonyms, but use different coordinate systems.

The NaturalSize property can only be used when a client area has not been defined (see ClientArea).

Horizontal tab controls without client area have an optimal height which allows all tabs to be displayed without being truncated and without extra height added to the tabs to fill the available dimensions of the tab control.

Vertical tab controls without client area have an optimal width which allows all tabs to be displayed without being truncated and without extra width added to the tabs to fill the available dimensions of the tab control.

The MakeNaturalSize method can be used to resize a tab control to its best width or height.

The Tabs.ForcedSize property can override the height/width of tab rows, affecting the tab control size.

See Also SftTabs Object | Object Hierarchy


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