DragLeave event
Description
Occurs when the user is dragging an object and leaves the
control.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_bndragleave |
CheckBox, CommandButton, Graph, InkEdit, |
|
pbm_cbndragleave |
DropDownListBox, DropDownPictureListBox |
|
pbm_dragleave |
DatePicker, MonthCalendar |
|
pbm_dwndragleave |
DataWindow |
|
pbm_endragleave |
SingleLineEdit, EditMask, MultiLineEdit, |
|
pbm_lbndragleave |
ListBox, PictureListBox |
|
pbm_lvndragleave |
ListView |
|
pbm_omndragleave |
OLE |
|
pbm_prndragleave |
HProgressBar, VProgressBar |
|
pbm_rendragleave |
RichTextEdit |
|
pbm_sbndragleave |
HScrollBar, HTrackBar, VScrollBar, VTrackBar |
|
pbm_tcndragleave |
Tab |
|
pbm_tvndragleave |
TreeView |
|
pbm_uondragleave |
UserObject |
|
pbm_dragleave |
Window |
Parameters
|
Argument |
Description |
|---|---|
|
source |
DragObject by value (a reference to the |
Return Values
Long. Return code choices (specify in
a RETURN statement):
-
0 Continue
processing
Usage
Obsolete functions
You no longer need to call the DraggedObject function
in a drag event. Use the source argument instead.
Examples
This example checks the name of the control being
dragged, and if it is, cb_1 it cancels
the drag operation:
|
1 |
IF ClassName(source) = "cb_1" THEN |
|
1 |
   cb_1.Drag(Cancel!) |
|
1 |
END If |
This example for a Picture control’s DragDrop
event removes its own border when another Picture control (the source)
is dragged beyond its boundaries:
|
1 |
IF source.TypeOf() = Picture! THEN |
|
1 |
   This.Border = TRUE |
|
1 |
END IF |