Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.BackgroundOutside Property

Defines the background image outside the tab control.

Syntax

Get
VBSet refPictureObj = object.BackgroundOutside As IPictureDisp
Put
VBobject.BackgroundOutside = refPictureObj As IPictureDisp
PutRef
VBSet object.BackgroundOutside = refPictureObj As IPictureDisp

object

A SftTabs object.

refPictureObj

A reference to a Picture object. Only bitmaps are supported.

Comments

The BackgroundOutside property defines the background image outside the tab control.

If the BackgroundOutside property defines a valid bitmap, this bitmap is displayed as the tab control's background outside the border of the tab control.

If the tab control uses an exact window region (see UseExactRegion), there is no area available outside the tab control which could be painted with the defined background bitmap. In this case, the BackgroundOutside property has no effect. Instead, the existing background is preserved.

If the background bitmap is too small to fill the entire area, it is tiled. The method SetOutsideOffset can be used to define an offset with which the bitmap should be aligned. The background bitmap is aligned with the top, left edge of the tab control window (not the client area) if 0, 0 is specified.

The BackgroundOutside property overrides the control's BackColor property, which is ignored if a valid background bitmap has been defined.

If Windows themes are used, this property has no effect.

The Picture object must represent a bitmap. Icons and metafiles are not supported.

There is no default background bitmap. Bitmap transparency is not used for the background bitmap.

Example

Set SftTabs1.BackgroundOutside = Picture1.Picture

See Also SftTabs Object | Object Hierarchy


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