Skip to Content
avatar image
Former Member

Move userobjects around window area

I am using Powerbuilder 10.5 and have built a window which uses openuserobject to display some custom visual userobjects.

I have managed to use drag/drop events to move my userobjects around the window area but I would prefer a smoother way which would also display the dragged object while it's being moved to its new position. Default drag/drop behavior only displays an icon during drag.

Is there any way I can resolve this?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 29, 2015 at 11:21 AM

    Hi Christos;

      Have you also considered the other Drag Events like:  DragEnter, DragLeave and DragWithin to assist you in enhancing / guiding the users drag experience?

    Regards ... Chris

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Suggestion: To smooth out the jerkiness, try issuing the Yield ( ) every N times through the DragWithin event script  (where N is an instance variable) instead of every firing of the script mickey by mickey (actual term for one mouse movement on the screen - #pixels per redrawing of the mouse cursor as set by the mouse driver).  😉