> tbodine wrote:
>
> I'm using the mouseStillDown message to make either the text or image
> follow the mouse until released.
Glad you solved it.
Jim Lambert
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscrib
Thanks Jim.
Jim Lambert wrote
> Presumably text in the field is editable by the user.
> Therefore the field text cannot be locked and mousedowns will be used for
> text selection rather than grabbing of the entire field, correct?
>
> Is the field user resizable?
A right-click toggles the text
Food for thought.
Presumably text in the field is editable by the user.
Therefore the field text cannot be locked and mousedowns will be used for text
selection rather than grabbing of the entire field, correct?
Is the field user resizable? If so, do you present the user with dotted border
and
On Sat, Mar 4, 2017 at 2:04 PM, tbodine via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Dr. Hawkins via use-livecode wrote
> > pass mousedown
>
>
Err, no I didn't :)
But my though would be after pasting, to move the image control (slider,
group, whatever) to the top level, and to hide
ahhh
how do you know if the user wants to move the image or the text?
maybe use a modifier key to help you differentiate between what the user
wants to grab.
if controlKey() is down then ...
or maybe give a hotkey to select either text or image. and maybe a red
border around the select
The message would pass up the message path, to the group that owns both
targets. That is where you would place the script to decide which object to
move.
The following code will help you know which object was clicked:
Put word 1 of the target into tObjectType
If tObjectType = "field" then
-- do
Dr. Hawkins via use-livecode wrote
> pass mousedown
"Pass mousedown" doesn't work here. (Message does not travel down to the
image control below the field.)
I used a send "mousedown" which does travel through, but what doesn't work
then is the "grab image 'blah'" line in the mousedown handler atta
the solution is simple . look up how to pass messages, it is easy and
made for in situations such as this.
pass mousedown
On Sat, Mar 4, 2017 at 3:52 PM, tbodine via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Hi Livecoders.
>
> I am hoping you'll have some ideas for solving a UI