SftTree/OCX 7.0

SftTree.RowPictureH Property

Softel vdm, Inc.

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

Handle = object.get_RowPictureH(ByVal ItemIndex As Integer)  As Integer

VB

Handle = object.RowPictureH(ByVal ItemIndex As Long)  As OLE_HANDLE

C#.NET

int Handle = object.get_RowPictureH(int ItemIndex);

VC++

OLE_HANDLE Handle = object->RowPictureH[long ItemIndex];
OLE_HANDLE Handle = object->GetRowPictureH(long ItemIndex);

C

HRESULT object->get_RowPictureH(long ItemIndex, OLE_HANDLE* Handle);

Delphi

Handle := object.RowPictureH[ItemIndex : Integer]  : Cardinal;

Put

VB.NET

object.set_RowPictureH(ByVal ItemIndex As Integer, ByVal Handle As Integer)

VB

object.RowPictureH(ByVal ItemIndex As Long) = Handle  As OLE_HANDLE

C#.NET

void object.set_RowPictureH(int ItemIndex, int Handle);

VC++

OLE_HANDLE object->RowPictureH[long ItemIndex] = Handle;
void object->PutRowPictureH(long ItemIndex, OLE_HANDLE Handle);

C

HRESULT object->put_RowPictureH(long ItemIndex, OLE_HANDLE Handle);

Delphi

object.RowPictureH[ItemIndex : Integer] := Handle  : Cardinal;

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


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