on 10-29-2015 10:58 AM
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?
Thanks
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One thing that might really help you (I think) would be to drop the UO idea and migrate to PB 12.6 where you could use the new Dockable Windows feature instead.
In the mean time, have you tried doing a Yield ( ) in your DragWithin event code to see if that helps with the screen repainting (ugly "traces") effect?
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).
HTH
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.