Hide

SftButton/OCX 3.0 - Button Control

Display
Print

ImageBackground Property, SftButton Object

Defines the background image.

Syntax

Get

VB.NETrefImageObj = object.ImageBackground As SftPictureObject
VBSet refImageObj = object.ImageBackground As SftPictureObject
C#.NETSftPictureObject refImageObj = object.ImageBackground;
VC++ISftPictureObject* refImageObj = object->ImageBackground;
ISftPictureObject* refImageObj = object->GetImageBackground();
CHRESULT object->get_ImageBackground(ISftPictureObject** refImageObj);

Put

VB.NETobject.ImageBackground = refImageObj As SftPictureObject
VBobject.ImageBackground = refImageObj As SftPictureObject
C#.NETSftPictureObject object.ImageBackground = refImageObj;
VC++ISftPictureObject* object->ImageBackground = refImageObj;
void object->PutImageBackground(ISftPictureObject* refImageObj);
CHRESULT object->put_ImageBackground(ISftPictureObject* refImageObj);

object

A SftButton object.

refImageObj

Defines the background image.

Comments

The ImageBackground property defines the background image.

Each button control offers an optional background image, which is always displayed centered within the available space inside the button. Other components of the button, like the attributes defined using the Text, Image1 or Image2 properties, simply overlay the background image.

Depending on the button state, the background image defined using the ImageBackground, ImageBackgroundDisabled, ImageBackgroundHover or ImageBackgroundPressed is displayed.

The background image is not displayed in the drop down portion of a drop down button.

See Also SftButton Object | Object Hierarchy


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