DragEnter

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, Picture, PictureHyperlink, PictureButton, RadioButton

pbm_cbndragenter

DropDownListBox, DropDownPictureListBox

pbm_dragenter

DatePicker, MonthCalendar

pbm_dwndragenter

DataWindow

pbm_endragenter

SingleLineEdit, EditMask, MultiLineEdit, StaticText, StaticHyperLink

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


Arguments

Argument

Description

source

DragObject by value (a reference to the control being dragged)


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:

IF source.TypeOf() = Picture! THEN
   This.Border = TRUE
END IF

See also

DragDrop

DragLeave

DragWithin