Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxItem.LabelPicture Property

Defines the label graphic displayed in this item.

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

Syntax

Get

VB.NETrefPictureObj = object.LabelPicture As stdole.IPictureDisp
VBSet refPictureObj = object.LabelPicture As IPictureDisp
C#.NETstdole.IPictureDisp refPictureObj = object.LabelPicture;
VC++IPictureDisp* refPictureObj = object->GetLabelPicture();
CHRESULT object->get_LabelPicture(IPictureDisp** refPictureObj);

Put

VB.NETobject.let_LabelPicture(ByVal refPictureObj As stdole.IPictureDisp)
VBobject.LabelPicture = refPictureObj As IPictureDisp
C#.NETvoid object.let_LabelPicture(stdole.IPictureDisp refPictureObj);
VC++void object->PutLabelPicture(IPictureDisp* refPictureObj);
CHRESULT object->put_LabelPicture(IPictureDisp* refPictureObj);

PutRef

VB.NETobject.LabelPicture = refPictureObj As stdole.IPictureDisp
VBSet object.LabelPicture = refPictureObj As IPictureDisp
C#.NETstdole.IPictureDisp object.LabelPicture = refPictureObj;
VC++void object->PutRefLabelPicture(IPictureDisp* refPictureObj);
CHRESULT object->putref_LabelPicture(IPictureDisp* refPictureObj);

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.

See Also SftBoxItem Object | Object Hierarchy


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