message blocking and passing
Moderator: Klaus
message blocking and passing
This came up in:
viewtopic.php?f=7&t=34597
It would be nice to have a new property called "transparent". This has been discussed before. I am doing it again.
1- If "false", it would allow one to click in an empty area of a group and still have the group script trap, say, "mouseUp". This is not currently possible without a kludge, as per the discussion in the thread above.
2- If "true", a control such as a button would allow, say, "mouseUp" to pass directly through it to any other control underlying it. Of course, the card would receive the message by virtue of the message hierarchy, but currently an underlying control will not.
Perhaps the default for a group would be "true", and for all other controls "false".
Craig
viewtopic.php?f=7&t=34597
It would be nice to have a new property called "transparent". This has been discussed before. I am doing it again.
1- If "false", it would allow one to click in an empty area of a group and still have the group script trap, say, "mouseUp". This is not currently possible without a kludge, as per the discussion in the thread above.
2- If "true", a control such as a button would allow, say, "mouseUp" to pass directly through it to any other control underlying it. Of course, the card would receive the message by virtue of the message hierarchy, but currently an underlying control will not.
Perhaps the default for a group would be "true", and for all other controls "false".
Craig
-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: message blocking and passing
Hold on a mo' . . .
Isn't 'transparent' the opposite of 'opaque'?
Isn't 'transparent' the opposite of 'opaque'?
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: message blocking and passing
This seems like a feature proposal (and a useful one, IMO). Should I move this thread to the "Feature Proposals" forum?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: message blocking and passing
That seems like a very good idea.
Although I do think my questions stands.
Although I do think my questions stands.
Re: message blocking and passing
@Richmond.
@Richard. I couldn't find it. Definitely move...
Craig
EDIT. Oh, there it is. I am not surprised, I cannot find the milk in the refrigerator.
Yes. But there is already an "opaque" property, and, as you know, it doesn't do what I want.Isn't 'transparent' the opposite of 'opaque'?
@Richard. I couldn't find it. Definitely move...
Craig
EDIT. Oh, there it is. I am not surprised, I cannot find the milk in the refrigerator.
-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: message blocking and passing
Well, just maybe the nature of 'opaque' needs to be changed.But there is already an "opaque" property, and, as you know, it doesn't do what I want.
The MAIN PROBLEM is that the areas inwith a group outwith the group's components need to be able to detect
mouse actions so they can react to them.
Were that to happen it would be relatively easy to do this sort of thing:
(pseudo-code)
Code: Select all
on mouseEnter
if the opaque of me is true then
--do something
end if
end mouseEnter
-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: message blocking and passing
I assume (?) the property of an object/control that lets a mouse action pass through it to
an underlying object is set by the people at LiveCode central and is currently outwith
ourcapabilities.
an underlying object is set by the people at LiveCode central and is currently outwith
ourcapabilities.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: message blocking and passing
Thanks, Craig. Moved.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: message blocking and passing
Richmond.
It must be a new property, whatever it is called. "Transparent" is not really a good name. How about "the sieveMessages"?
Craig
Likely not a good idea, since that property already is applied to ordinary controls in existing stacks. Maybe not for groups though, where it seems to do nothing at all.Well, just maybe the nature of 'opaque' needs to be changed.
It must be a new property, whatever it is called. "Transparent" is not really a good name. How about "the sieveMessages"?
Craig