On 13/07/14 02:46, Geoff Canyon wrote:
On Fri, Jul 11, 2014 at 12:14 AM, Richmond
wrote:
on mouseUp
set the moveSpeed to 65000
put item 2 of the loc of me into LCK
move me to ZZZ, LCK
end mouseUp
where 'ZZZ' is the fixed lateral location.
I've set the moveSpeed way up high so the mov
On Thu, Jul 10, 2014 at 7:24 PM, Peter Bogdanoff wrote:
> How can I drag it by clicking on one side of this group?
local xOff -- the offset for dragging
local dragging -- the flag set for dragging
on mouseDown
put item 1 of the loc of me - item 1 of the mouseLoc into xOff
put true into d
On Fri, Jul 11, 2014 at 12:14 AM, Richmond
wrote:
> on mouseUp
> set the moveSpeed to 65000
>put item 2 of the loc of me into LCK
>move me to ZZZ, LCK
> end mouseUp
>
> where 'ZZZ' is the fixed lateral location.
>
> I've set the moveSpeed way up high so the movement is not seen.
>
Apart
On 11/07/14 03:24, Peter Bogdanoff wrote:
I tried using the grab command, but I couldn’t seem to be able to restrict the
Y coordinate with that.
on mouseDown
grab me
end mouseDown
on mouseUp
set the moveSpeed to 65000
put item 2 of the loc of me into LCK
move me to ZZZ, LCK
en
LiveCode
>> Subject: Dragging an object
>> Message-ID: <14789523-9af4-4531-83cf-ff60644d1...@me.com>
>> Content-Type: text/plain; charset=windows-1252
>>
>> Hi,
>>
>> I want to drag an object around (a group), restricting its Y coordinate (s
Thanks, I’ll try it.
pb
On Jul 10, 2014, at 7:01 PM, Jim Hurley wrote:
>>
>> Message: 19
>> Date: Thu, 10 Jul 2014 17:24:16 -0700
>> From: Peter Bogdanoff
>> To: How to use LiveCode
>> Subject: Dragging an object
>> Message-ID: <14789523-9af4-4
That doesn’t seem to be good for my immediate challenge—I’m able to restrict
the motion to horizontal OK. It’s getting the control to move smoothly no
matter where on it you click.
On Jul 10, 2014, at 5:54 PM, Roger Eller wrote:
>
> On Jul 10, 2014 8:24 PM, "Peter Bogdanoff" wrote:
>
>> Hi,
>
> Message: 19
> Date: Thu, 10 Jul 2014 17:24:16 -0700
> From: Peter Bogdanoff
> To: How to use LiveCode
> Subject: Dragging an object
> Message-ID: <14789523-9af4-4531-83cf-ff60644d1...@me.com>
> Content-Type: text/plain; charset=windows-1252
>
> Hi,
>
This really old info from the archives might help.
https://www.mail-archive.com/use-revolution%40lists.runrev.com/msg10273.html
On Jul 10, 2014 8:24 PM, "Peter Bogdanoff" wrote:
> Hi,
>
> I want to drag an object around (a group), restricting its Y coordinate
> (set to be a property, “yLocation
Hi,
I want to drag an object around (a group), restricting its Y coordinate (set to
be a property, “yLocation"). I’m using this script inside the object:
on mouseMove
if the mouse is down then
set the loc of me to (item 1 of the mouseLoc,the yLocation of me)
end if
end mouseMove
How
10 matches
Mail list logo