SftButton/OCX 2.5

SftButton.OLEDropMode Property

Softel vdm, Inc.

Defines OLE drop support.

Syntax       

Get

VB.NET

Mode = object.OLEDropMode  As SftButtonOLEDropModeConstants

VB

Mode = object.OLEDropMode  As SftButtonOLEDropModeConstants

C#.NET

SftButtonOLEDropModeConstants Mode = object.OLEDropMode;

VC++

enum SftButtonOLEDropModeConstants Mode = object->OLEDropMode;
enum SftButtonOLEDropModeConstants Mode = object->GetOLEDropMode();

C

HRESULT object->get_OLEDropMode(enum SftButtonOLEDropModeConstants* Mode);

Delphi

Mode := object.OLEDropMode  : TOleEnum;

Put

VB.NET

object.OLEDropMode = Mode  As SftButtonOLEDropModeConstants

VB

object.OLEDropMode = Mode  As SftButtonOLEDropModeConstants

C#.NET

SftButtonOLEDropModeConstants object.OLEDropMode = Mode;

VC++

enum SftButtonOLEDropModeConstants object->OLEDropMode = Mode;
void object->PutOLEDropMode(enum SftButtonOLEDropModeConstants Mode);

C

HRESULT object->put_OLEDropMode(enum SftButtonOLEDropModeConstants Mode);

Delphi

object.OLEDropMode := Mode  : TOleEnum;

object

A SftButton object.

Mode

Defines whether the control can act as an OLE drop target.

Name

Value

Description

OLEDropSftButtonNone

0

The control is not a valid drop target.

OLEDropSftButtonManual

1

The control is a valid drop target and triggers the OLE drop events, allowing the application to handle the OLE drop operation.

Comments

The OLEDropMode property defines OLE drop support.

If the control is a valid drop target (OLEDropSftButtonManual), the events OLEDragOver and OLEDragDrop occur when an item is dragged over the control or when an item is dropped.


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