What do I need to do to get a Data Grid form to scroll when dragging a row that you'd like to drop in a row that is not in view?
Data Grid tables just work as far as I can tell. When the mouse hits the top/bottom of the data grid while dragging, the DG will scroll. Data Grid forms do not.
The quick background on this is I received a "feature request" from a user to add in the ability to scroll the field where users can re-order items by drag/drop when you hit the top or bottom of the field. I didn't realize the DG Form wasn't already auto scrolling and confirmed the behavior.
I've attached a basic stack including a DG table and a DG form. The Drag/Drop code is in the DG group script and is code I found somewhere but I can't give credit to whomever it was as I don't remember where I found it.
My question is specific to Mac OS-X Desktop and can confirm in IDE and Standalone. I've tested in 7.1.2 (rc2) and 8.0.0 dp14.
Thanks in advance,
Bob
Data Grid Form Scroll for Drag Drop
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Data Grid Form Scroll for Drag Drop
- Attachments
-
- DG-Drag-Drop.livecode.zip
- (6.51 KiB) Downloaded 240 times