How to select and move an image using 1 mouse click?

xavier.bury at clearstream.com xavier.bury at clearstream.com
Thu Jul 5 08:11:14 EDT 2007


Hi Ian,

You can do this in a mousedown message.

on mousedown
  loadimage
  repeat while the mouse is down
    movemyimage
  end repeat
end mousedown

---------------------=---------------------
Xavier Bury


use-revolution-bounces at lists.runrev.com wrote on 05/07/2007 13:39:31:

> Hi
> 
> I have written an application which allows the user to choose an image
> by clicking on a button displaying an icon sized representation of the
> image. The image appears (it is copied from a custom prop into a
> 'blank' image) and can then be moved under mouse control to any
> location on the screen. This process takes two mouse clicks; the first
> to select the shape and the second to grab the image itself, and works
> perfectly.
> 
> However the affect I would like is that as soon as I mousedown on the
> button, my larger image appears under the mouse which can then be
> dragged to any location on the screen before being released ie a one
> click solution.
> 
> Any help would be greatly appreciated.
> 
> 
> Thanks
> 
> Ian
> 
> =======================
> Ian McKnight
> 
> iangmcknight at googlemail.com
> =======================
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution



----------------------------------------------------------------------------
Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg RC Luxembourg B 60911.


-----------------------------------------
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.

Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead

END OF DISCLAIMER



More information about the use-livecode mailing list