Re: SVG widget and grab me command

2019-02-22 Thread Håkan Liljegren via use-livecode
Or you can use an image instead as they happily handle SVG files nowadays… :-Håkan On 21 Feb 2019, 18:18 +0100, Tore Nilsen via use-livecode , wrote: > > The simple solution was to «group» each individual SVG widget and add the > grab me command to the group. >

Re: SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
My mistake, I meant handles, not handlers. The widgets are used to display chess pieces. The actual script «controlling" each widget/group is a behavior, where the script itself resides in a button script. Best regards Tore > 21. feb. 2019 kl. 18:36 skrev hh via use-livecode > : > >> Tore

Re: SVG widget and grab me command

2019-02-21 Thread hh via use-livecode
> Tore wrote: > Since my student does not need any handlers (in fact would not > want any handlers added to the widgets) ... That's exactly why I wrote ControlHandles: The approach doesn't change any property of a control/widget. Your approach does (grouping, scripting) ...

Re: SVG widget and grab me command

2019-02-21 Thread Tore Nilsen via use-livecode
Thanks for your explanation. Since my student does not need any handlers (in fact would not want any handlers added to the widgets), the examples from «ControlHandles89» could not be used. The simple solution was to «group» each individual SVG widget and add the grab me command to the group.

Re: SVG widget and grab me command

2019-02-21 Thread Mark Wieder via use-livecode
On 2/21/19 7:02 AM, hh via use-livecode wrote: Widgets are not ordinary controls. So this is not a bug, rather a missing feature (the widget author will have to implement an own "grab"-handler). The widget passes mouseDown but not in a way that "grab" can be used. MouseMove isn't passed (=> not

Re: SVG widget and grab me command

2019-02-21 Thread hh via use-livecode
Widgets are not ordinary controls. So this is not a bug, rather a missing feature (the widget author will have to implement an own "grab"-handler). The widget passes mouseDown but not in a way that "grab" can be used. MouseMove isn't passed (=> not usable) at all. You could try "ControlHandles89"