DragEnter
PowerScript 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, InkPicture, |
|
pbm_cbndragenter |
DropDownListBox, |
|
pbm_dragenter |
DatePicker, MonthCalendar |
|
pbm_dwndragenter |
DataWindow |
|
pbm_endragenter |
SingleLineEdit, EditMask, MultiLineEdit, StaticText, |
|
pbm_lbndragenter |
ListBox, PictureListBox |
|
pbm_lvndragenter |
ListView |
|
pbm_omndragenter |
OLE |
|
pbm_prndragenter |
HProgressBar, VProgressBar |
|
pbm_rendragenter |
RichTextEdit |
|
pbm_sbndragenter |
HScrollBar, HTrackBar, VScrollBar, |
|
pbm_tcndragenter |
Tab |
|
pbm_tvndragenter |
TreeView |
|
pbm_uondragenter |
UserObject |
|
pbm_dragenter |
Window |
Arguments
|
Argument |
Description |
|---|---|
|
source |
DragObject by value (a reference to the control being |
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 2 3 |
IF source.TypeOf() = Picture! THEN This.Border = TRUE END IF |
See also