SftButton/OCX 2.5

SftButton.Image1 Property

Softel vdm, Inc.

Defines the first graphic.

Syntax       

Get

VB.NET

refImageObj = object.Image1  As SftPictureObject

VB

Set refImageObj = object.Image1  As SftPictureObject

C#.NET

SftPictureObject refImageObj = object.Image1;

VC++

ISftPictureObject* refImageObj = object->Image1;
ISftPictureObject* refImageObj = object->GetImage1();

C

HRESULT object->get_Image1(ISftPictureObject** refImageObj);

Delphi

refImageObj := object.Image1  : ISftPictureObject;

Put

VB.NET

object.Image1 = refImageObj  As SftPictureObject

VB

object.Image1 = refImageObj  As SftPictureObject

C#.NET

SftPictureObject object.Image1 = refImageObj;

VC++

ISftPictureObject* object->Image1 = refImageObj;
void object->PutImage1(ISftPictureObject* refImageObj);

C

HRESULT object->put_Image1(ISftPictureObject* refImageObj);

Delphi

object.Image1 := refImageObj  : ISftPictureObject;

object

A SftButton object.

refImageObj

Defines the first graphic.

Comments

The Image1 property defines the first graphic.

The Image1Hover property is used if the mouse cursor is located on the control or picture component, Image1Pressed is used if the button is pressed or Image1Disabled is used if the control is disabled (see Enabled property). Otherwise, the Image1 property is used to display the first graphic. Image1Hover, Image1Pressed and Image1Disabled are ignored if no graphic has been defined using the Image1 property.

The layout of the button label and the position and alignment of the first picture component are defined using the Orientation, Image1AlignHorz and Image1AlignVert properties.

For detailed information on the use of the Orientation, Image1, Image1AlignHorz, Image1AlignVert, Image2, Image2AlignHorz, Image2AlignVert, Text, TextAlignHorz, TextAlignVert properties, please see "Button Label".


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com