SftBox/OCX 4.5

SftBoxRowHeader.Image Property

Softel vdm, Inc.

Defines the graphic displayed in this row header.

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 SftBoxRowHeader object.

refImageObj

Defines the graphic displayed in this row header.

Comments

The Image property defines the graphic displayed in this row header.

In a fixed height combo box control, all row header graphics (i.e. all bitmaps) must be the same size (height and width). The dimensions of the graphics are used to calculate the minimum required height for all items, so graphics and text are never clipped vertically. To change the size of all row header graphics used, they must be removed first using the RowHeaders.ClearImages method.

In a variable height combo box control, the graphics can be of varying sizes. The item height is automatically adjusted so graphics are never clipped vertically.

To remove an individual row headers picture, set the property to Nothing (0, null, NULL).

The position of the graphic relative to the text component can be defined using the RowHeader.ImageHAlign and RowHeader.ImageVAlign property.

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).


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