allow = onDrag (idControl, code, item, x, y)
This callback is invoked when the user attempts to drag a list box or tree view item.
Parameter | Description |
---|---|
idControl | The id of the control that generated the event |
code | A constant identifying what kind of dragging event occured |
item | The item in the control to which this event applies |
x | The x position of the mouse, relative the the upper left hand corner of the control |
y | The y position of the mouse, relative to the upper left hand corner of the control |
$$TRUE to allow the dragging, $$FALSE to cancel it
This is a callback function. You must supply this function yourself. To register this callback, use the WinXRegOnDrag function.
Possible values for code are:
Different controls implement dragging in different ways, and hence will make slightly different use of this function.
See the dragList and treeView examples in the samples folder. |