Passing Click from Image to Field?
BNZ2 at CDC.GOV
Tue Dec 28 15:13:43 CST 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.
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Chipp
Sent: Tuesday, December 28, 2004 4:08 PM
To: How to use Revolution
Subject: Re: Passing Click from Image to Field?
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
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.
Scott Rossi wrote:
> Looking for some new thinking on a problem:
> I have a translucent image which overlays a scrolling list field. I
> have the list field accept mouse clicks but because the overlaying
> only semi-transparent (not 100%) it prevents mouse clicks from
> list field.
> The only way I've been able to get around this is a kludge of locking
> screen on mouseDown, hiding the image, using the click command to
> the mouse location, and then showing the image and unlocking the
> works, but it's a little slow, and I'm wondering if there might be a
> 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
More information about the use-livecode