message blocking and passing

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6931
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

message blocking and passing

Post by dunbarx » Wed Sep 02, 2020 5:03 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4897
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: message blocking and passing

Post by richmond62 » Wed Sep 02, 2020 7:08 pm

Hold on a mo' . . .

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7956
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: message blocking and passing

Post by FourthWorld » Wed Sep 02, 2020 7:19 pm

This seems like a feature proposal (and a useful one, IMO). Should I move this thread to the "Feature Proposals" forum?
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4897
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: message blocking and passing

Post by richmond62 » Wed Sep 02, 2020 7:21 pm

That seems like a very good idea.

Although I do think my questions stands.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6931
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: message blocking and passing

Post by dunbarx » Wed Sep 02, 2020 7:22 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4897
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: message blocking and passing

Post by richmond62 » Wed Sep 02, 2020 7:25 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4897
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: message blocking and passing

Post by richmond62 » Wed Sep 02, 2020 7:31 pm

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7956
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: message blocking and passing

Post by FourthWorld » Wed Sep 02, 2020 7:55 pm

Thanks, Craig. Moved.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6931
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: message blocking and passing

Post by dunbarx » Wed Sep 02, 2020 8:33 pm

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

Post Reply

Return to “Feature Proposals”