Passing Click from Image to Field?
Jose L. Rodriguez
listas at lektor.net
Tue Dec 28 17:33:51 CST 2004
Try this on the image script:
put item 2 of the clickloc+the scroll of fld 1 into theend
put item 2 of the topleft of fld 1 into thestart
put round (theend-thestart)/the textheight of fld 1 into theline
select line theline of fld 1
El 28/12/04 22:08, use-revolution-request at lists.runrev.com escribió:
> Message: 13
> Date: Tue, 28 Dec 2004 12:49:56 -0800
> From: Scott Rossi <scott at tactilemedia.com>
> Subject: Passing Click from Image to Field?
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <BDF706F4.1D715%scott at tactilemedia.com>
> Content-Type: text/plain; charset="US-ASCII"
> 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.
> BTW, the image needs to appear above the list field because it semi-obscures
> the text at the edges of the field. Placing the image behind the field and
> making the field transparent isn't going to work in this case.
> Any other ideas?...
> Thanks & Regards,
> Scott Rossi
More information about the use-livecode