Skip to content

OLEStartDrag Event

Description

Occurs when the command bar's OLEDrag method is performed, or when the command bar component initiates an OLE drag/drop operation when the OLEDragMode property is set to Automatic.

This event specifies the data formats and drop effects that the source component supports. It can also be used to insert data into the DataObject object.

Syntax

Public Event OLEStartDrag( _
    ByVal [Data](#) As [DataObject](XtremeCommandBars~DataObject.md), _
    ByRef [AllowedEffects](#) As Long _
)

Parameters

  • Data
    A DataObject object containing formats that the source will provide and, optionally, the data for those formats. If no data is contained in the DataObject, it is provided when the control calls the GetData method. The programmer should provide the values for this parameter in this event. The SetData and Clear methods cannot be used here.

  • AllowedEffects
    The source component should use the logical Or operator against the supported values and place the result in the AllowedEffects parameter. The target component can use this value to determine the appropriate action (and what the appropriate user feedback should be).

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.