Hi Fabian, it works!

It's interesting that I tried it but I had to do something wrong,
because I used getTarget() too, but probably differently.

Thanks!

-- 
Best regards
- Petr Kobalicek <http://kobalicek.com>

2009/10/14 Fabian Jakobs <[email protected]>:
> Hi Petr,
>
> I see two options:
>
> 1. attach the same contextmenu to each individual list item. This way
> the opener points to the list item instead of the list.
>
> 2. Attach a "contextmenu" event listener to the list. The "getTarget()"
> method of the event willl tell you which widget was directly under the
> cursor.
>
> Best Fabian
>
>
>> Hi Stefan,
>>
>> Thanks for reply. The problem is that I want exactly the item where
>> user clicked. You can see that selection is additive and I'm not
>> interested about it, so I need some mechanism to get item where user
>> clicked or null (of there is no item like scrollbar, etc).
>>
>> The opener() was only my trying.
>>
>> It took me about 2 hours and I have no solution. I can catch
>> contextmenu event, but I don't know how to translate coordinates to
>> the child widget. I looked at qooxdoo sources, but without success.
>>
>> For example I have this code:
>>
>>         // I just see both, I don't know the right one, documentation
>> is very brief.
>>         this.addListener("contextmenu", this._onContextMenu, this);
>>         this.addListener("beforeContextmenuOpen", this._onContextMenu, this);
>>
>> an in _onContextMenu() I want to get children based on event
>> coordinates, is this possible? Or more precisely, is this right
>> approach ?
>>
>>
>
>
> --
> Fabian Jakobs
> JavaScript Framework Developer
>
> 1&1 Internet AG - Web Technologies
> Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
> Telefon: +49 721 91374-6784
> [email protected]
>
> Amtsgericht Montabaur / HRB 6484
> Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
> Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
> Mauss, Jan Oetjen
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to