Hide

SftButton/OCX 3.0 - Button Control

Display
Print

OLESetData Event, SftButton Object

Source object can provide data and/or data formats.

Syntax

VB.NETPrivate Sub object_OLESetData(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.OLESetData
VBPrivate Sub object_OLESetData(Data As DataObject, Format As Integer)
C#.NETvoid object_OLESetData(object sender, EventArgumentType e);
VC++void OnOLESetDataobject(struct IVDMDataObject** Data, short* Format);
CHRESULT OnOLESetDataobject(struct IVDMDataObject** Data, short* Format);

object

A SftButton object.

Data

A DataObject object containing formats that the source will provide and, in addition, possibly the data for those formats. If no data is contained in the DataObject, it is provided when the control calls the GetData method and you should provide the values for the Data parameter.

Format

The format of the data that the target component is requesting. The source component uses this value to determine what to load into the DataObject object.

Comments

The OLESetData event occurs when source object can provide data and/or data formats.

In certain cases, you may wish to defer loading data into the DataObject object of a source component to save time, especially if the source component supports many formats. This event allows 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.

See Also SftButton Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.