Is there a way in Flash to forward a mouse event without prior knowledge of what the underneath view is? When we had two overlapping clickable views, I didn't find any good way to say "pass this mousedown event to the next view that would of received it if I hadn't been in the way".

If that is possible, then I guess that change Henry proposed of explicit forwarding would be OK, but I think it will break a lot of apps.  For example, if I want to indicate focus or selection state, I might do it using a view that is on top of all the other views, but isn't clickable.  The change Henry proposed breaks this app.

If easy event forwarding exists, couldn't OpenLaszlo still offer the clickable=false option and hide the forwarding from the developer?  I'm thinking giving every view has handlers for all mouse events (onmousedown, onmouseup, onclick, etc.).  The body of these handlers would be something like, "if not clickable, forward the event".

Just my two cents.

-Jason


Jim Grandy wrote:
Moving thread to laszlo-dev.

On Sep 13, 2006, at 7:35 AM, Henry Minsky wrote:

Being naturally lazy and simple-minded I've thrown this out before as an idea, what if we say that LZX uses the DHTML model of
click-handling, and modify SWF to act the same way (i.e., all views clickable).  Not being a GUI designer, I don't really know what the pluses and minuses are, but it seems to me like if the app designer is going to put graphics on top of
clickable views which are in a different parent hierarchy, then maybe it is incumbent upon them to explicitly forward
the mouse events to the area they are covering up?



On 9/13/06, P T Withington <[EMAIL PROTECTED]> wrote:
I guess this is no worse than the SWF case where we have to have two
movie clips for every view?  Still sucks though.

On 2006-09-13, at 02:36 EDT, Max Carlson wrote:

> It turns out any view physically on top of a clickable view (but not a
> child) intercepts all mouse events.  We originally thought this was
> restricted to text views
> (http://jira.openlaszlo.org/jira/browse/LPP-2520 ) but it applies to
> any
> view.  I'm making this my top priority.  I filed a new bug to track
> this:
> http://jira.openlaszlo.org/jira/browse/LPP-2680
>
> I'm glad I left the fix in!
>
> -Max
>
> _______________________________________
>
> Internal-Dev mailing list
> [EMAIL PROTECTED]
> https://hedwig.laszlosystems.com/mailman/listinfo/internal-dev
>
> To search the dev list: http://lists.laszlosystems.com/intranet/
> finddev.cgi


_______________________________________

Internal-Dev mailing list
[EMAIL PROTECTED]
https://hedwig.laszlosystems.com/mailman/listinfo/internal-dev

To search the dev list: http://lists.laszlosystems.com/intranet/finddev.cgi



--
Henry Minsky
Software Architect
[EMAIL PROTECTED]


_______________________________________

Internal-Dev mailing list



_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

-- 
Jason Stafford
Principal Developer
Inspiration Software, Inc.
The leader in visual thinking & learning

InspireData(tm), the newest innovative thinking and learning tool from
Inspiration Software(r), extends the proven power of visual learning to
data analysis. Learn more at www.inspiration.com. 

503-297-3004 Extension 119
503-297-4676 (Fax)
9400 SW Beaverton-Hillsdale Highway
Suite 300
Beaverton, OR 97005-3300
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to