SftTree/OCX 7.0

SftTreeItems.DropHighlightStyle Property

Softel vdm, Inc.

Defines the style used to display the drop target of a drag & drop operation.

Syntax       

Get

VB.NET

Style = object.DropHighlightStyle  As SftTreeDropHighlightStyleConstants

VB

Style = object.DropHighlightStyle  As SftTreeDropHighlightStyleConstants

C#.NET

SftTreeDropHighlightStyleConstants Style = object.DropHighlightStyle;

VC++

enum SftTreeDropHighlightStyleConstants Style = object->DropHighlightStyle;
enum SftTreeDropHighlightStyleConstants Style = object->GetDropHighlightStyle();

C

HRESULT object->get_DropHighlightStyle(enum SftTreeDropHighlightStyleConstants* Style);

Delphi

Style := object.DropHighlightStyle  : TOleEnum;

Put

VB.NET

object.DropHighlightStyle = Style  As SftTreeDropHighlightStyleConstants

VB

object.DropHighlightStyle = Style  As SftTreeDropHighlightStyleConstants

C#.NET

SftTreeDropHighlightStyleConstants object.DropHighlightStyle = Style;

VC++

enum SftTreeDropHighlightStyleConstants object->DropHighlightStyle = Style;
void object->PutDropHighlightStyle(enum SftTreeDropHighlightStyleConstants Style);

C

HRESULT object->put_DropHighlightStyle(enum SftTreeDropHighlightStyleConstants Style);

Delphi

object.DropHighlightStyle := Style  : TOleEnum;

object

A SftTreeItems object.

Style

Defines the style used to display the drop target of a drag & drop operation.

Style

Value

Description

dropSftTreeCaret

0

The drag & drop target is the current item.  The Items.Current property is updated and set to the drop target.  The drop target becomes the new current item.  The target item is not selected, so even in a single selection tree control (see Items.MultiSelect property), the Items.Current property value and the Items.Selection property value are not identical.

dropSftTreeOnTop

1

The drag & drop target is highlighted using the color defined using the Items.DropHighlightColor property.  The color is used as background color for the target item.  The Items.Current property is not updated.

dropSftTreeBetween

2

The drag & drop target is highlighted using a solid line drawn using the color defined by the Items.DropHighlightColor property.  The line is drawn before the target item, interpreting the Items.DropHighlight property as the insertion point.  The Items.Current property is not updated.

Comments

The DropHighlightStyle property defines the style used to display the drop target of a drag & drop operation.

The Items.SelectStyle and Items.NoFocusStyle properties work in conjunction with the Items.OutlineStyle property to determine the exact appearance of drop target items. The highlighted portion of a drop target is rendered using the outline style defined by the Items.OutlineStyle property.

See Also  SftTreeItems Object | Object Hierarchy


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