SftBox/OCX 4.5

SftBoxDropDown.Image Property

Softel vdm, Inc.

Defines the graphic displayed in the drop down button.

Syntax       

Get

VB.NET

refImageObj = object.Image  As SftPictureObject

VB

Set refImageObj = object.Image  As SftPictureObject

C#.NET

SftPictureObject refImageObj = object.Image;

VC++

ISftPictureObject* refImageObj = object->Image;
ISftPictureObject* refImageObj = object->GetImage();

C

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

Delphi

refImageObj := object.Image  : ISftPictureObject;

Put

VB.NET

object.Image = refImageObj  As SftPictureObject

VB

object.Image = refImageObj  As SftPictureObject

C#.NET

SftPictureObject object.Image = refImageObj;

VC++

ISftPictureObject* object->Image = refImageObj;
void object->PutImage(ISftPictureObject* refImageObj);

C

HRESULT object->put_Image(ISftPictureObject* refImageObj);

Delphi

object.Image := refImageObj  : ISftPictureObject;

object

A SftBoxDropDown object.

refImageObj

Defines the graphic displayed in the drop down button.

Comments

The Image property defines the graphic displayed in the drop down button.

If the image object refImageObj defines a bitmap, the top, left pixel of the bitmap must contain the bitmap's background color. This color will be replaced throughout the bitmap with the actual background (see Bitmap Transparency).

The DropDown.ImageDropped property can be used to define the graphic displayed in the drop down button when the drop down portion is shown.

The DropDown.ButtonStyle property is used to define the appearance of the drop down button.


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