Page 1 of 1

message blocking and passing

Posted: Wed Sep 02, 2020 5:03 pm
by dunbarx
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

Re: message blocking and passing

Posted: Wed Sep 02, 2020 7:08 pm
by richmond62
Hold on a mo' . . .

Isn't 'transparent' the opposite of 'opaque'?

Re: message blocking and passing

Posted: Wed Sep 02, 2020 7:19 pm
by FourthWorld
This seems like a feature proposal (and a useful one, IMO). Should I move this thread to the "Feature Proposals" forum?

Re: message blocking and passing

Posted: Wed Sep 02, 2020 7:21 pm
by richmond62
That seems like a very good idea.

Although I do think my questions stands.

Re: message blocking and passing

Posted: Wed Sep 02, 2020 7:22 pm
by dunbarx
@Richmond.
Isn't 'transparent' the opposite of 'opaque'?
Yes. But there is already an "opaque" property, and, as you know, it doesn't do what I want.

@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.

Re: message blocking and passing

Posted: Wed Sep 02, 2020 7:25 pm
by richmond62
But there is already an "opaque" property, and, as you know, it doesn't do what I want.
Well, just maybe the nature of 'opaque' needs to be changed.

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

Re: message blocking and passing

Posted: Wed Sep 02, 2020 7:31 pm
by richmond62
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.

Re: message blocking and passing

Posted: Wed Sep 02, 2020 7:55 pm
by FourthWorld
Thanks, Craig. Moved.

Re: message blocking and passing

Posted: Wed Sep 02, 2020 8:33 pm
by dunbarx
Richmond.
Well, just maybe the nature of 'opaque' needs to be changed.
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.

It must be a new property, whatever it is called. "Transparent" is not really a good name. How about "the sieveMessages"?

Craig