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

Reply via email to