Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxItems.ItemImageExpandable Property

Defines the default graphic used to display an expandable item's item image.

Syntax

Get

VB.NETrefImageObj = object.ItemImageExpandable As SftPictureObject
VBSet refImageObj = object.ItemImageExpandable As SftPictureObject
C#.NETSftPictureObject refImageObj = object.ItemImageExpandable;
VC++ISftPictureObject* refImageObj = object->ItemImageExpandable;
ISftPictureObject* refImageObj = object->GetItemImageExpandable();
CHRESULT object->get_ItemImageExpandable(ISftPictureObject** refImageObj);

Put

VB.NETobject.ItemImageExpandable = refImageObj As SftPictureObject
VBobject.ItemImageExpandable = refImageObj As SftPictureObject
C#.NETSftPictureObject object.ItemImageExpandable = refImageObj;
VC++ISftPictureObject* object->ItemImageExpandable = refImageObj;
void object->PutItemImageExpandable(ISftPictureObject* refImageObj);
CHRESULT object->put_ItemImageExpandable(ISftPictureObject* refImageObj);

object

A SftBoxItems object.

refImageObj

Defines the default graphic used to display an expandable item's item image.

Comments

The ItemImageExpandable property defines the default graphic used to display an expandable item's item image.

The ItemPictureExpandable property is used to define the default item graphic displayed for an expandable item, which is currently collapsed.

The ItemImageExpandable, Items.ItemImageExpanded and Items.ItemImageLeaf properties must each be set to a valid image, otherwise they have no effect.

Sample bitmaps can be found in the directory \Program Files\Softelvdm\SftBox OCX 5.0\Samples\Bitmaps. E.g., ItemExp.bmp and ItemExp2.bmp contain suitable sample images for the ItemImageExpandable property.

When using fixed height items (see Items.Style), all graphics used in a combo box control as Item.Image, ItemImageExpandable, Items.ItemImageExpanded and Items.ItemImageLeaf properties at the same time must be the same size (height and width). The dimensions of the graphics are used to calculate the minimum dimension for items, so graphics used as item graphics are never clipped vertically. To change the item graphic size, all item graphics must be removed first using the Items.ClearItemImages method.

When using variable height items (see Items.Style), the graphics used can be of varying size. The item height is adjusted automatically, so graphics are never clipped vertically.

If an item is disabled (see Item.Enabled property), the graphic is drawn in a "grayed" fashion.

The ItemPictureExpandable property can be set to the value Nothing (NULL). Default item graphics are then no longer displayed. The Item.Image properties remain unchanged.

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

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

See Also SftBoxItems Object | Object Hierarchy


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