The DragWithin event has different arguments for different objects:
Object |
See |
ListBox, ListView, and Tab controls |
|
TreeView control |
|
Windows and other controls |
For information about the DataWindow control’s DragWithin event, see the DataWindow Reference or the online Help.
Occurs when the user is dragging an object within the control.
Event ID |
Objects |
---|---|
pbm_lbndragwithin |
ListBox |
pbm_lvndragwithin |
ListView |
pbm_tcndragwithin |
Tab |
Argument |
Description |
---|---|
source |
DragObject by value (a reference to the control being dragged) |
index |
Integer by value (a reference to the ListView item under the pointer in the ListView control) |
Long. Return code choices (specify in a RETURN statement):
0 Continue processing
This example changes the background color of the ListView when a DragObject enters its border:
This.BackColor = RGB(128, 0, 128)
Occurs when the user is dragging an object within the control.
Event ID |
Objects |
---|---|
pbm_tvndragwithin |
TreeView |
Argument |
Description |
---|---|
source |
DragObject by value (a reference to the control being dragged) |
handle |
Long (a reference to the ListView item under the pointer in the TreeView control) |
Long. Return code choices (specify in a RETURN statement):
0 Continue processing
This example changes the background color of the TreeView when a DragObject enters its border:
This.BackColor = RGB(128, 0, 128)
Occurs when the user is dragging an object within the control.
Event ID |
Objects |
---|---|
pbm_bndragwithin |
CheckBox, CommandButton, Graph, Picture, PictureHyperLink, PictureButton, RadioButton |
pbm_cbndragwithin |
DropDownListBox |
pbm_endragwithin |
SingleLineEdit, EditMask, MultiLineEdit, StaticText, StaticHyperLink |
pbm_prndragwithin |
HProgressBar, VProgressBar |
pbm_sbndragwithin |
HScrollBar, HTrackBar, VScrollBar, VTrackBar |
pbm_uondragwithin |
UserObject |
pbm_dragwithin |
Window |
Argument |
Description |
---|---|
source |
DragObject by value (a reference to the control being dragged) |
Long. Return code choices (specify in a RETURN statement):
0 Continue processing