SftBox/OCX 4.5

SftBoxItem.LabelPicture Property

Softel vdm, Inc.

Defines the label graphic displayed in this item.

Deprecated - Provided for compatibility with earlier versions only - Use Item.LabelImage.Picture instead

Syntax       

Get

VB.NET

refPictureObj = object.LabelPicture  As stdole.IPictureDispLanguage-specific information

VB

Set refPictureObj = object.LabelPicture  As IPictureDisp

C#.NET

stdole.IPictureDispLanguage-specific information refPictureObj = object.LabelPicture;

VC++

IPictureDisp* refPictureObj = object->GetLabelPicture();

C

HRESULT object->get_LabelPicture(IPictureDisp** refPictureObj);

Delphi

refPictureObj := object.LabelPicture  : IPictureDispLanguage-specific information;

Put

VB.NET

object.let_LabelPicture(ByVal refPictureObj As stdole.IPictureDispLanguage-specific information)

VB

object.LabelPicture = refPictureObj  As IPictureDisp

C#.NET

void object.let_LabelPicture(stdole.IPictureDispLanguage-specific information refPictureObj);

VC++

void object->PutLabelPicture(IPictureDisp* refPictureObj);

C

HRESULT object->put_LabelPicture(IPictureDisp* refPictureObj);

Delphi

procedure object._Set_LabelPicture(refPictureObj : IPictureDispLanguage-specific information);

PutRef

VB.NET

object.LabelPicture = refPictureObj  As stdole.IPictureDispLanguage-specific information

VB

Set object.LabelPicture = refPictureObj  As IPictureDisp

C#.NET

stdole.IPictureDispLanguage-specific information object.LabelPicture = refPictureObj;

VC++

void object->PutRefLabelPicture(IPictureDisp* refPictureObj);

C

HRESULT object->putref_LabelPicture(IPictureDisp* refPictureObj);

Delphi

object.LabelPicture := refPictureObj  : IPictureDispLanguage-specific information;

object

A SftBoxItem object.

refPictureObj

A reference to a Picture object.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.LabelImage.Picture instead

The LabelPicture property defines the label graphic displayed in this item.

In a fixed height combo box control, all label picture 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 label graphics used, they must be removed first using the Items.ClearLabelImages 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.

If the image object refPictureObj 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).

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

The VAlignStyle property can be used to define the vertical alignment of label graphics.


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