DragDrop
event (DataWindows)
Description
PowerBuilder only
Occurs when the user drags an object onto the control and releases
the mouse button to drop the object.
PowerBuilder event
information
Event ID: pbm_dwndragdrop
|
Argument |
Description |
|---|---|
|
source |
DragObject by value. A reference to the control being |
|
row |
Long by value. The number of the row the pointer was If the pointer |
|
dwo |
DWObject by value. A reference to the control under |
Return Values
There are no special outcomes for this event. The only code
is:
0 — Continue processing
Usage
Obsolete methods in
PowerBuilder
You no longer need to call the DraggedObject method in a drag event.
Use the source argument instead.
Examples
This example for the DragDrop event for a DataWindow checks whether
the source object is a DataWindow control. If so, it finds out the current
row in the source and moves it to the target:
|
1 2 3 4 5 6 7 8 9 |
DataWindow ldw_Source IF source.TypeOf() = DataWindow! THEN ldw_Source = source IF row > 0 THEN ldw_Source.RowsMove(row, row, Primary!, & This, 1, Primary!) END IF END IF |
See also