Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

RowPictureH Property, SftTree Object

Defines the graphic displayed in an item's row header.

Deprecated - Provided for compatibility with earlier versions only - Use RowHeader.Image.PictureH instead

Syntax

Get

VB.NETHandle = object.get_RowPictureH(ByVal ItemIndex As Integer) As Integer
VBHandle = object.RowPictureH(ByVal ItemIndex As Long) As OLE_HANDLE
C#.NETint Handle = object.get_RowPictureH(int ItemIndex);
VC++OLE_HANDLE Handle = object->RowPictureH[long ItemIndex];
OLE_HANDLE Handle = object->GetRowPictureH(long ItemIndex);
CHRESULT object->get_RowPictureH(long ItemIndex, OLE_HANDLE* Handle);

Put

VB.NETobject.set_RowPictureH(ByVal ItemIndex As Integer, ByVal Handle As Integer)
VBobject.RowPictureH(ByVal ItemIndex As Long) = Handle As OLE_HANDLE
C#.NETvoid object.set_RowPictureH(int ItemIndex, int Handle);
VC++OLE_HANDLE object->RowPictureH[long ItemIndex] = Handle;
void object->PutRowPictureH(long ItemIndex, OLE_HANDLE Handle);
CHRESULT object->put_RowPictureH(long ItemIndex, OLE_HANDLE Handle);

object

A SftTree object.

ItemIndex

The zero-based item index.

Handle

A bitmap handle. Defines the graphic displayed in an item's row header. This bitmap handle has to remain valid until the tree control no longer uses it. The application has to destroy the bitmap handle once it is no longer needed. The top, left pixel of each graphic must contain the background color. This color will be replaced by the actual background when the graphic is displayed.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use RowHeader.Image.PictureH instead

The RowPictureH property defines the graphic displayed in an item's row header.

The RowPicture and RowPictureH properties are synonyms, but accept different value types (Picture object reference or Windows bitmap handle).

When using fixed height items (see Items.Style), all graphics used in a tree control as RowPicture property 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 the row headers, so graphics used as RowPicture property are never clipped vertically. To change the row header graphic size, all row header graphics must be removed first using the RowHeaders.ClearImages 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 row headers are disabled (see RowHeaders.Enabled property), the graphic is drawn in a "grayed" fashion, if it is based on a bitmap. Other image types, like color samples, .NET image objects, etc., must be explicitly replaced with a grayed image if a different rendering of a disabled image is desired. Individual items may be disabled using the Item.Enabled property.

The RowHeaders.ClearImages method can be used to remove all row header graphics. The RowPictureH property can be set to the value 0 (NULL), which removes the graphic from the row header.

The position of the row header graphic is determined by the RowHeader.ImageHAlign and RowHeader.ImageVAlign properties.

See Also SftTree Object | Object Hierarchy


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