ComponentOne List 8.0 for ActiveX
OLESetData Event

 

TDBCombo Reference> TDBCombo Events> OLESetData Event

OLESetData Event

The OLESetData event occurs when a combo control is the source component of a drag/drop operation and a target component performs the GetData method on the source's DataObject object, but the data for the specified format has not yet been loaded.

Syntax

TDBCombo_OLESetData (Data As TrueDBCombo80.DataObject, DataFormat As Integer)

Arguments

Data is a DataObject object used as a placeholder for the requested data. You can load the data with the SetData method of the DataObject.

DataFormat is an integer specifying the format of the data that the target control is requesting.

Remarks

Event applies to TDBCombo control.

In certain cases, it is more efficient to defer loading data into the DataObject object of a source component to save time, especially if it supports many formats. This event enables the source to respond to only one request for a given format of data. When this event is called, the source should check the format parameter to determine what needs to be loaded and then perform the SetData method on the DataObject object to load the data which is then passed back to the target component.

Note: Currently, the only data format recognized by the combo is text.

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback