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
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
> 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) ...
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
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
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"
When one of my students tried to use grab me command in a mouseDown handler on
a SVG widget, some strange things happened. In run-mode, the script did not
work as expected. The widget would not move with the mouse. When switching back
to edit mode, the widget started to move with the mouse
Go on: I dare you:
https://www.dropbox.com/s/djb48g4otvv9pgf/FLATdemo.livecode.zip?dl=0
Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
Scott… you are a jewel.. thanks. this worked great! I used white that way I
can do anything in the background
Confirmed on desktop (mouse) mobile (drag with finger)
SCOTT ROSSI WROTE:
> 1) Export your tile images from a group that includes a graphic behind the
> field set to 1% opacity of the
"grab me" works on any part of transparent fields .. even when clicking on the
transparent part of the field… can you just use all fields?
Mac 10.10.5 LC 7.1.1
be well,
randy
Randy Hengst
www.classroomFocusedSoftware.com
> On Feb 5, 2016, at 11:51 PM, Scott Rossi <sc...@
. And unexpectedly, the snapshot of the field seems to include the alpha
channel for the background which is set to transparent… so you *can* see
through the images.
If you put “grab me” into the
on mousedown
grab me
end mousedown
script of the image tiles created by this method… you cannot
em: The original field has a transparent background. which I am
>hoping to keep. And unexpectedly, the snapshot of the field seems to
>include the alpha channel for the background which is set to transparent
>so you *can* see through the images.
>
> If you put ³grab me² into th
ckground which is set to transparent…
> so you *can* see through the images.
>
> If you put “grab me” into the
>
> on mousedown
>grab me
> end mousedown
>
> script of the image tiles created by this method… you cannot grab the
> image — either with the pointer mouse too
Hi It has been a long time.
Does anyone have a script as to how I might keep a field from moving past the
edge of a stack (No longer to be seen).
That is to say, In a grab me script how do I stop a user dragging a field
(or graphic ) past a point on a stack.
Thank you for your time
the top of my head
tho'.
Bob
On Dec 14, 2011, at 5:49 PM, Kathy Jaqua wrote:
Hi It has been a long time.
Does anyone have a script as to how I might keep a field from moving past the
edge of a stack (No longer to be seen).
That is to say, In a grab me script how do I stop a user
On Wed, Dec 14, 2011 at 8:49 PM, Kathy Jaqua wrote:
Hi It has been a long time.
Does anyone have a script as to how I might keep a field from moving past
the
edge of a stack (No longer to be seen).
That is to say, In a grab me script how do I stop a user dragging a
field
(or graphic
Thank Bob,
I am not quiet sure what you mean.
I am just dragging a graphic inside a stack.
How does one trap for something.
Could you be a bit more specific? It's been a while...
Kathy Graves Jaqua
___
use-livecode mailing list
Thank you Roger,
I have been using livecode again since April and finish me projects.
I feel much, much better now. Yea!
Kathy Graves Jaqua
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and
Kathy,
This does what you want.
on mouseDown
put the rect of this cd into myRect
put the mouseLoc into myMouseLoc
put item 1 of myMouseLoc - item 1 of the loc of me comma item 2 of \
the mouseLoc - item 2 of the loc of me into myDiff
repeat until the mouse is up
Okay I just checked it out, and the dragMove is not getting sent at all with
the pointer tool selected. So I turned on the message watcher to see what
messages DO get sent. I found one, but it doesn't get sent until AFTER you let
go of the object. Still, it can work for you I think.
Put this
Wow! These are great script and both of you are fast.
THANK YOU so much
Kathy Graves Jaqua
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
Welcome back Kathy!
Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life
information with you, accessible, and secure.
On Dec 14, 2011, at 7:05 PM, Kathy Jaqua wrote:
Thank you Roger,
I have been using livecode again since April and
Bill,
Thank you. You have always been a bright spot in my life.
Kathy Graves Jaqua
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
23 matches
Mail list logo