Mouse Events Transparency

Randy Hengst iowahengst at mac.com
Sat May 31 09:27:21 EDT 2008


Hi Tom and Mark W.,

I realize Andres has moved on with this, but I'm still confused about  
pass. Tom and Mark both suggested using pass and I'd like to  
understand how because I simply cannot make it work.

The way I understand the original post, Andres was placing an image  
over a button -- in a layer above the button -- that held the name.  
He did that in an effort to solve localization issues.  He wanted the  
user's mouse to still activate the button's "roll-over" capabilities  
(using the built in icon options) even though the image was covering  
the button and intercepting the mouse events.

How do you pass the mouse events from the image covering the button  
to that button? All I can do with pass is pass the mouse events from  
image to the card.

take care,
randy hengst
-----
On May 30, 2008, at 11:15 PM, Thomas McGrath III wrote:

> Randy,
>
> Actually I sent this right after I read the original message but it  
> ended up taking a long time to post to the list. I saw the solution  
> of the group with messages and I have used that one myself  
> especially if a mouseDown is needed.
>
> I got it to work by including each of the handlers as well in the  
> button.
>
> I'd probably go with the group solution though...
>
> Regards,
>
> Tom McGrath
> On May 30, 2008, at 7:05 PM, Randy Hengst wrote:
>
>> Hi Tom,
>>
>> I realize this message was in response to Andres' original message  
>> - I'm responding because I provided a different idea and I  
>> couldn't get pass to work.
>>
>> My understanding of pass is that it sends the message along the  
>> message path -- from the image object that Andres was using as a  
>> label above his button to the card -- but not from the image  
>> object to the button in the layer just below it.
>>
>> When I place an image over a button and use your script all the  
>> handlers are passed to the card -- not to the button. How did you  
>> get this to work?
>>
>> take care,
>> randy hengst
>> -----
>> On May 29, 2008, at 9:08 PM, Thomas McGrath III wrote:
>>
>>> You will have to pass ALL of the mouse events then.
>>>
>>> on mouseUp
>>> pass mouseUp
>>> end mouseUp
>>>
>>> on mouseEnter
>>> pass mouseEnter
>>> end mouseEnter
>>>
>>> on mouseLeave
>>> pass mouseLeave
>>> end mouseLeave
>>>
>>> on mouseWIthin
>>> pass mouseWithin
>>> end mouseWIthin
>>>
>>> etc.
>>>
>>> Tom McGrath
>>>
>>>
>>> On May 29, 2008, at 7:43 PM, Andres Martinez wrote:
>>>
>>>> Thanks Mark and Randy
>>>>
>>>> Unfortunately, that is not enough.
>>>>
>>>> One of the problems I have not been able to work around is the  
>>>> button's auto-hilite, used to show a different Icon when the  
>>>> mouse is over the button. When the mouse enter the label, then  
>>>> the icon is back to normal and the button receives a mouseleave  
>>>> message.
>>>>
>>>> Regards,
>>>> Andres Martinez
>>>> www.baKno.com
>>>>
>>>> On May 29, 2008, at 6:51 PM, Mark Wieder wrote:
>>>>
>>>>> Andres-
>>>>>
>>>>>> Is it possible to define an image to be transparent to mouse  
>>>>>> events?
>>>>>
>>>>> How about...
>>>>>
>>>>> on mouseUp
>>>>> pass mouseUp
>>>>> end mouseUp
>>>>>
>>>>> -- 
>>>>> Mark Wieder
>>>>> mwieder at ahsoftware.net
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>> _______________________________________________
>>> 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
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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