Passing Click from Image to Field?

Lynch, Jonathan BNZ2 at CDC.GOV
Tue Dec 28 16:13:43 EST 2004


If the list field has a set textheight, then you could calculate the
distance from the top of the listfield to item 2 of the mouseloc, then
divide that distance by the list fields textheight, and round it. That
will give you the line number above which you clicked. Then, you can
select that line number in the list field.

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Chipp
Walters
Sent: Tuesday, December 28, 2004 4:08 PM
To: How to use Revolution
Subject: Re: Passing Click from Image to Field?

Interesting,

I was thinking just today about doing the same thing as a sort of 
'workaround' for adding "..." at the end of each line larger than the 
width of the field. IOW, have each line 'disolve' to white at the right 
border.

Scott, I can't think of another way to do what you're doing other than 
the way you're doing it. Passing events hasn't worked for me before on 
this kind of problem.

best,

Chipp

Scott Rossi wrote:

> Looking for some new thinking on a problem:
> 
> I have a translucent image which overlays a scrolling list field.  I
need to
> have the list field accept mouse clicks but because the overlaying
image is
> only semi-transparent (not 100%) it prevents mouse clicks from
reaching the
> list field.
> 
> The only way I've been able to get around this is a kludge of locking
the
> screen on mouseDown, hiding the image, using the click command to
click at
> the mouse location, and then showing the image and unlocking the
screen.  It
> works, but it's a little slow, and I'm wondering if there might be a
more
> efficient/programmatic solution.


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.6 - Release Date: 12/28/2004

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


More information about the use-livecode mailing list