Starting drag operation with a widget
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Location: Overland Park, Kansas
- Contact:
Starting drag operation with a widget
Hi,
Should it be possible to start a drag operation when clicking on a widget? I haven't been successful in the past and I wonder if anything has changed or if perhaps I was doing something wrong.
Should it be possible to start a drag operation when clicking on a widget? I haven't been successful in the past and I wonder if anything has changed or if perhaps I was doing something wrong.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
Re: Starting drag operation with a widget
I think at the moment you have to start it from the widget's LiveCode Script rather than being able to start it directly from LCB.
LiveCode Open Source Team — @PeterTBBrett — peter.brett@livecode.com
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Location: Overland Park, Kansas
- Contact:
Re: Starting drag operation with a widget
I'm trying to start it from LCS. That is what doesn't work.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
Re: Starting drag operation with a widget
Hmm, that's really weird -- I swear that's how dragging widgets out from the Tools palette works (dragging on an SVG Path widget initiates the drag operation).trevordevore wrote:I'm trying to start it from LCS. That is what doesn't work.
LiveCode Open Source Team — @PeterTBBrett — peter.brett@livecode.com
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Location: Overland Park, Kansas
- Contact:
Re: Starting drag operation with a widget
Okay. I'll do some more tests and try again.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Location: Overland Park, Kansas
- Contact:
Re: Starting drag operation with a widget
I just tried this test:
1) Drag SVG icon widget onto new stack.
2) Add this script to the widget:
3) Click and drags on the widget. The milliseconds doesn't display in the message box.
The same script on a button control displays the milliseconds. I'm guessing the tools palette is using a different technique.
1) Drag SVG icon widget onto new stack.
2) Add this script to the widget:
Code: Select all
on dragStart
put the milliseconds
end dragStart
The same script on a button control displays the milliseconds. I'm guessing the tools palette is using a different technique.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
Re: Starting drag operation with a widget
The tools palette uses its own drag-drop (modal) loop to do its thing. This sounds like a bug in the widget host - it should still allow drag-drop stuff to be managed from script, even if widget's can't yet do so themselves.
Re: Starting drag operation with a widget
Probably best to file a bug report about this.
LiveCode Open Source Team — @PeterTBBrett — peter.brett@livecode.com
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Location: Overland Park, Kansas
- Contact:
Re: Starting drag operation with a widget
Thanks guys.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
-
- VIP Livecode Opensource Backer
- Posts: 93
- Joined: Tue Nov 17, 2009 6:47 pm
- Location: Wellington, New Zealand
Re: Starting drag operation with a widget
This seems to relate also to bug http://quality.livecode.com/show_bug.cgi?id=16930 reported in mid Feb. Glad to see quick fix thanks.