DragEnter

Description

Occurs when the user is dragging an object and enters the control.

Event ID

Event ID

Objects

pbm_bndragenter

CheckBox, CommandButton, Graph, Picture, PictureHyperlink, PictureButton, RadioButton

pbm_cbndragenter

DropDownListBox

pbm_dwndragenter

DataWindow

pbm_endragenter

SingleLineEdit, EditMask, MultiLineEdit, StaticText, StaticHyperLink

pbm_lbndragenter

ListBox

pbm_lvndragenter

ListView

pbm_prndragenter

HProgressBar, VProgressBar

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)

Returns

Long. Return code choices (specify in a RETURN statement):

Examples

Example 1

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