Selecting text across multiple fields

Lynch, Jonathan bnz2 at cdc.gov
Fri Dec 9 13:17:43 EST 2005


I see also that I have to use mouse(3) to start the selection. An open
field just will not receive a mousedown message from mouse(1) - even
selectionchanged does not work for this, because it is sent when the
mouse is released, not when the mouse is pressed.

Torment.

Thanks Ken.

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Ken Ray
Sent: Friday, December 09, 2005 12:55 PM
To: Use Revolution List
Subject: Re: Selecting text across multiple fields

On 12/9/05 10:22 AM, "Lynch, Jonathan" <bnz2 at cdc.gov> wrote:

> I am trying to figure out how to select text with the mouse across
> multiple fields.
> 
> The problem is that with the mousebutton down, messages only get sent
to
> the starting field, not other fields that you move the mouse over.
> 
> Does anyone have suggestions on how to overcome that?

You need to a use mouseMove and then check to see if the mouseLoc is
within
the rect of a specific field or object. You can't use the mouseControl
either for the same reason you mentioned. If you have a lot of objects,
you'll need to loop over them. Not pretty, but it works if you don't
have a
large number of objects.


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.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




More information about the use-livecode mailing list