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.
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 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) ...
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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) ...

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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.

Best regards
Tore Nilsen








> 21. feb. 2019 kl. 16:02 skrev 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" from "Sample Stacks" or
> http://livecodeshare.runrev.com/stack/902/
> which adds handles to widgets for resizing and grabbing.
> (Or use a solution similar to that).
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

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 usable) at all.


Actually, I *do* consider this a bug, although one by design.

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


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" from "Sample Stacks" or
http://livecodeshare.runrev.com/stack/902/
which adds handles to widgets for resizing and grabbing.
(Or use a solution similar to that).


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode