Page 1 of 1

Transparent to mouse events?

Posted: Tue Jan 28, 2014 6:48 pm
by dunbarx
Don't I remember a thread where one object can be made not to "see" mouse events? In other words, if I have a button directly over and covering a locked field, say, I could make a mouseclick on that button trigger a mouseUp message in the field, as if the button was not there?

"Transparent", but to events, not just for visual effects. The intent is to have such an object overlying a line in a datagrid, where that overlying object is only there for coloring purposes, and all mouse actions can pass to the DG. I know this is easily scriptable for simple controls, but in a DG it gets complicated.

Craig Newman

Re: Transparent to mouse events?

Posted: Tue Jan 28, 2014 7:27 pm
by FourthWorld
Would setting the group's colorOverlay property do what you need?

Re: Transparent to mouse events?

Posted: Tue Jan 28, 2014 7:40 pm
by dunbarx
Richard.

it isn't the color or blending properties, it is a matter of making the overlying object not be the target. If I had two buttons, one on top of the other, I was thinking I once saw a discussion on how to click on that sandwich, but have the lower button receive the event. All this without scripting anything.

I could have been dreaming. If so, do you think a new property might be useful for this? A "passMessageThrough" property?

This works in the hierarchy, of course. If I just had a single button somewhere, I can pass a mouseUp event to the card, say, either by not trapping it in the button, or by passing explicitly. But this dog don't hunt with two buttons, one on top of the other.

Craig

Re: Transparent to mouse events?

Posted: Wed Jan 29, 2014 4:27 pm
by jacque
Disabling the button might do it.

Re: Transparent to mouse events?

Posted: Wed Jan 29, 2014 4:49 pm
by dunbarx
Jacque.

No, that would only disable the button's ability to receive mouseClicks. It wouldn't allow them to pass through it.

Looks like I was indeed dreaming. Nothing new there.

Craig