fwiw, I would certainly like to see an easy way to allow events to
bubble...

cheers,

David


|---------+---------------------------->
|         |           Elliot Winard    |
|         |           <[EMAIL PROTECTED]|
|         |           stems.com>       |
|         |                            |
|         |           05/12/2006 06:48 |
|         |           PM               |
|         |           Please respond to|
|         |           enw              |
|         |                            |
|---------+---------------------------->
  
>-----------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                    |
  |       To:       P T Withington <[EMAIL PROTECTED]>, [EMAIL PROTECTED]       
                                    |
  |       cc:       Jim Grandy <[EMAIL PROTECTED]>, [email protected]   
                               |
  |       Subject:  Re: [Laszlo-dev] Grid events don't work - fix               
                                    |
  
>-----------------------------------------------------------------------------------------------------------------|



I've encountered this in several different projects and solved it with
similar techniques.

It would be useful if there was a way allow for both blocking (the
current default) and bubbling.
Once a user gets used to this behavior it's not terribly difficult to
utilize a parent.onfoo.sendEvent() pattern, but an alternate solution
may be cleaner.
-e


---=---===-------
Elliot Winard
Sr. Software Engineer
Laszlo Studios
---=---===-------


On Fri, May 12, 2006 at  3:40 PM, P T Withington wrote:

> Just throwing this out for discussion...
>
> This is a symptom of the LZX event model that events don't trickle.
> Should they?  Or should any component that intercepts an event
> trampoline it the way you have done?
>
> On 2006-05-12, at 09:42 PDT, [EMAIL PROTECTED] wrote:
>
>> Ok - dug a little deeper, and the onmouseXXX are getting swallowed
>> in the
>> gridColumn.lzx.
>>
>> I added the following parent.onmousexxx.sendEvent() calls and it
>> works
>> great:
>>
>>             <state placement="header" apply="${parent.resizable}">
>>                 <view height="${parent.height-1}"
>>                     x="${parent.mybutton.width - 1}"
>>                     placement="header"
>>                     name="resizer"
>>                     clickable="$once{parent.resizable}"
>>                     onmouseover="LzCursor.setCursorGlobal (
>> 'lzgridcursor_rsrc' );parent.onmouseover.sendEvent();"
>>
>> onmouseout="LzCursor.restoreCursor();parent.onmouseout.sendEvent();"
>>
>> onmousedown="LzCursor.lock();parent.rs.apply
>> ();parent.onmousedown.sendEvent();"
>>
>> onmouseup="LzCursor.unlock();parent.rs.remove
>> ();parent.onmouseup.sendEvent();"
>>>
>>                     <view resource="resources/grid/
>> column_resize_top.swf"/>
>>                     <view resource="resources/grid/
>> column_resize_mid.swf"
>>                         stretches="height"/>
>>                     <view resource="resources/grid/
>> column_resize_bot.swf"/>
>>                     <stableborderlayout axis="y"/>
>>                 </view>
>>             </state>
>>
>> Is this the recommended approach?
>>
>> Do you want me to submit a patch or a bug?
>>
>> cheers,
>>
>> David
>>
>>
>>
>> |---------+---------------------------->
>> |         |           Jim Grandy       |
>> |         |           <[EMAIL PROTECTED]|
>> |         |           lo.org>          |
>> |         |                            |
>> |         |           05/10/2006 02:29 |
>> |         |           PM               |
>> |         |                            |
>> |---------+---------------------------->
>>>
>>> ---------------------------------------------------------------------
>>> --------------------------------------------|
>>    |
>> |
>>   |       To:        [EMAIL PROTECTED]
>> |
>>   |       cc:       laszlo- [EMAIL PROTECTED]
>> |
>>   |       Subject:  Re: [Laszlo-dev] Grid events don't work -
>> workaround?                                           |
>>>
>>> ---------------------------------------------------------------------
>>> --------------------------------------------|
>>
>>
>>
>>
>> On May 10, 2006, at 10:54 AM, [EMAIL PROTECTED] wrote:
>>
>> Yep, tried the onwidth event - problem with that is that it seems  to
>> fire
>>
>> repeatedly with EVERY slight movement of the mouse :-(? No way to
>> tell when
>>
>> it's finished being moved.
>>
>>
>>
>> The main frustration is none of the onMouseXXX events seem to  work.?
>> This
>>
>> should be really easy, but seems like mutliple people on the forums
>> have
>>
>> been having similar problems at least for a year now.
>>
>>
>> I'm not sure we have a bug filed on this. Can you please make sure
>> something is in our bug database?
>>
>> Any more ideas?
>>
>> Nope, sorry. Please file a bug requesting that this be
>> straightforward/possible.
>>
>> jim
>>
>> _______________________________________________
>> Laszlo-dev mailing list
>> [email protected]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev





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

Reply via email to