DragEnter event
Description
Occurs when the user is dragging an object and enters the
control.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_bndragenter |
CheckBox, CommandButton, Graph, InkEdit, |
|
pbm_cbndragenter |
DropDownListBox, DropDownPictureListBox |
|
pbm_dragenter |
DatePicker, MonthCalendar |
|
pbm_dwndragenter |
DataWindow |
|
pbm_endragenter |
SingleLineEdit, EditMask, MultiLineEdit, |
|
pbm_lbndragenter |
ListBox, PictureListBox |
|
pbm_lvndragenter |
ListView |
|
pbm_omndragenter |
OLE |
|
pbm_prndragenter |
HProgressBar, VProgressBar |
|
pbm_rendragenter |
RichTextEdit |
|
pbm_sbndragenter |
HScrollBar, HTrackBar, VScrollBar, VTrackBar |
|
pbm_tcndragenter |
Tab |
|
pbm_tvndragenter |
TreeView |
|
pbm_uondragenter |
UserObject |
|
pbm_dragenter |
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 for a Picture control’s DragDrop
event adds a border to itself when another Picture control (the
source) is dragged within its boundaries:
|
1 |
IF source.TypeOf() = Picture! THEN |
|
1 |
   This.Border = TRUE |
|
1 |
END IF |