Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.NaturalSizePix Property

Returns the natural height or width of the control.

Syntax

Get
VBSizePix = object.NaturalSizePix As Long

object

A SftTabs object.

SizePix

Returns the natural (or optimal) height or width for the current tab control. The units used are pixels.

Comments

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

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

The NaturalSizePix 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.

See Also SftTabs Object | Object Hierarchy


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