DragLeave

Description

PowerBuilder only Occurs when the user is dragging an object and leaves the control.

PowerBuilder event information Event ID: pbm_dwndragleave

Argument

Description

source

DragObject by value. A reference to the control being dragged.

Returns

There are no special outcomes for this event. The only code is:

Usage

Obsolete methods in PowerBuilder You no longer need to call the DraggedObject method in a drag event. Use the source argument instead.

Examples

Example 1

This example checks the name of the control being dragged and if it is dw_1, it cancels the drag operation:

IF ClassName(source) = "dw_1" THEN
		dw_1.Drag(Cancel!)
END If

See also