Ahhh... I hear ya...
AFAIK there's no way to "delay" an event from firing, so yeah write a Timer
into your mouseDown, mouseUp, and click events to actually dispatch their
meaning on that Timer's end event, and kill that Timer event listener if
your doubleClick gets dispatched first...

I remember having to write in the double click handling manually back in 1.0
when it didn't exist in the framework, and it was quite similar to this
concept :-)


Other folks may have a better suggestion, but that's how I'd approach.


Brendan



On Wed, Dec 10, 2008 at 11:06 AM, flexaustin <[EMAIL PROTECTED]> wrote:

>   Brendan, I have the the doubleclick enabled, but I have listener on my
> component (with property doubleclickenabled = true) that needs to
> listen for both MOUSE_DOWN & DOUBLE_CLICK.
>
> If DOUBLE_CLICK happens then I don't want Mouse_down to be handled.
>
> So I need my component to wait and see if the mouse_down was part of a
> double click or a just a mouse down.
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, "Brendan
> Meutzner" <[EMAIL PROTECTED]>
> wrote:
>
> >
> > There is a double click event you can listen for on UIComponent...
> just make
> > sure that doubleClickEnabled is set to true on the instance you're
> setting
> > the listener on.
> >
> > Brendan
> >
> >
> >
> > On Tue, Dec 9, 2008 at 11:04 AM, flexaustin <[EMAIL PROTECTED]> wrote:
> >
> > > Is it possible to listen for both a mouse down and doubleclick
> events
> > > without using some sort of timer? On mouse down start timer to listen
> > > for a another mouse down?
> > >
> > > If you listen for a mouse down and in the mouse down handler add
> > > another listener to listen for some other action is a possibility I
> > > guess, but would it add the listener in time?
> > >
> > > TIA
> > >
> > >
> > >
> >
> >
> >
> > --
> > Brendan Meutzner
> > http://www.meutzner.com/blog/
> >
>
>  
>



-- 
Brendan Meutzner
http://www.meutzner.com/blog/

Reply via email to