Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to enable dragdrop for listbox?

I want to dragadrop for a listbox. I enable property DragAuto. Then the drogdrop is for the whole listbox,  And I can't select any item in the listbox anymore.

but I want dragdrop for single selected item. How to to it?

Former Member
Former Member replied

Hi Kent;

   You would need to use the "manual drag" feature of PB.

1) Make sure Drag Auto is OFF

2) Add a User Event and map it to the MouseMove message (pbm_mousemove)

3) On the UserEvent ... use the DRAG ( ) method as follows  ...

//Check to see if mouse button is down

If flags = 1 Then

  This.Drag( Begin!)

End If

This should leave the normal behavior of the DDLB alone until an actual dragging action is started by the user.  

HTH

Regards ... Chris

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question