|
VLButtonBar Reference
|
||||||||||||||||||||
|
|
||||||||||||||||||||
|
Occurs when a component's OLEDrag method is performed, or when a 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 Private Sub object_OLEStartDrag(data As DataObject, allowedeffects As Long) The OLEStartDrag event syntax has these parts:
Settings The settings for allowedeffects are:
Remarks 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). The OLEStartDrag event also occurs if the component’s OLEDragMode property is set to Automatic. This allows you to add formats and data to the DataObject object after the component has done so. You can also override the default behavior of the component by clearing the DataObject object (using the Clear method) and then adding your data and formats. You may wish to defer putting data into the DataObject object until the target component requests it. This allows the source component to save time by not loading multiple data formats. When the target performs the GetData method on the DataObject, the source’s OLESetData event will occur if the requested data is not contained in the DataObject. At this point, the data can be loaded into the DataObject, which will in turn provide the data to the target. If the user does not load any formats into the DataObject, then the drag/drop operation is canceled. |
||||||||||||||||||||
|
©2001-2004 Viklele Associates. All rights reserved. For new products and software updates check Viklele Associates. |