Re: TreeView Widget Drag and Drop Support

2021-04-02 Thread HENRY LOWE via use-livecode
Many thanks Brian. As you suggested, I have created an enhancement request. https://quality.livecode.com/show_bug.cgi?id=23147 Henry > On Mar 31, 2021, at 3:32 PM, HENRY LOWE via use-livecode > wrote: > > Thanks Brian. I am handling the ‘o

Re: TreeView Widget Drag and Drop Support

2021-03-31 Thread Brian Milby via use-livecode
Check out this script on GitHub: https://github.com/Himalayan-Academy/Siva-Siva-App/blob/df93a63e40153df6ec4bd29a8571bb0c8a99c2a9/modules/stories/behavior_Stories.livecodescript#L230 The card had a tree widget with 2 levels. The actual items to select are at the second level. It looks like the

Re: TreeView Widget Drag and Drop Support

2021-03-31 Thread HENRY LOWE via use-livecode
Thanks Brian. I am handling the ‘on DragDrop’ message in the widget’s script but on completing the drop there is no way to determine which row in the TreeView widget the data was dropped into. Ideally when in DragDrop mode the widget would automatically hilite the row that the mouse is currently

Re: TreeView Widget Drag and Drop Support

2021-03-31 Thread HENRY LOWE via use-livecode
Thank you Sean for the detailed recipe. Henry > On Mar 30, 2021, at 5:06 PM, Sean Cole (Pi) via use-livecode > wrote: > > Hi Henry, > > I often take the widgets, like TreeView, and add in other message > responders like this. It's real easy to do? > > Just make a copy of the widget folder fr

Re: TreeView Widget Drag and Drop Support

2021-03-30 Thread Brian Milby via use-livecode
This seems like something I could look into. Many of the recent improvements (additions) to that widget are things that I added. On the surface this seems to be not that difficult. Please add a feature request in bugzilla for this. For the second issue, this is easily handled in script. Ther

Re: TreeView Widget Drag and Drop Support

2021-03-30 Thread Sean Cole (Pi) via use-livecode
Hi Henry, I often take the widgets, like TreeView, and add in other message responders like this. It's real easy to do? Just make a copy of the widget folder from the LC Tools Folder (Livecode.app/Contents/Tools/Extensions/com.livecode.widget.treeview) and into your own Livecode extensions folder

TreeView Widget Drag and Drop Support

2021-03-30 Thread HENRY LOWE via use-livecode
I am using the LC TreeView widget to implement a sidebar containing a hierarchical menu in a MacOS app. The widget seems well suited for this purpose and I have successfully created a facsimile of the standard sidebar that is used increasingly in both MacOS and iPadOS apps. However, I need to dr