i use now the existing "contextmenu" event, works fine.
but now some problems with the events (other post)
Sebastian Werner wrote:
>
> Hi Thomas,
>
> could you send us a complete example?
>
> BTW: I haven't played yet with the menu, to use it as a contextmenu.
> Have you any interest to help us to develop it. There is already a
> contextmenu property in all QxWidget, but it's current unused.
>
> Sebastian
>
>
>
> Thomas Oeding schrieb:
>> Hello list,
>>
>> i tried to build my own context menu (i started with the Menu_2.html
>> example),
>> but the QxMenu widget builds only the border and stops then.
>>
>> i attached the following event to a button (c1):
>>
>> c1.addEventListener("mousedown", function(e) {
>>
>> var button = e.getButton();
>> var x = e.getPageX();
>> var y = e.getPageY();
>>
>>
>> if (button=="right") {
>> m1.setLocation(x, y);
>> if (!m1.isSeeable()) m1.show();
>> }
>>
>> if (button=="left") {
>> if (m1.isSeeable()) m1.hide();
>> }
>>
>> // e.setPropagationStopped(true);
>>
>> });
>>
>> m1 is the menu.
>>
>> http://www.nabble.com/user-images/2596.gif
>>
>> :-(
>>
>> regards
>> Thomas
>> --
>> View this message in context:
>> http://www.nabble.com/custom-right-mouse-click-context-menu-t1349100.html#a3609120
>> Sent from the qooxdoo-devel forum at Nabble.com.
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by xPML, a groundbreaking scripting
>> language
>> that extends applications into web and mobile media. Attend the live
>> webcast
>> and join the prime developer group breaking into this new coding
>> territory!
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>> _______________________________________________
>> Qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://www.nabble.com/custom-right-mouse-click-context-menu-t1349100.html#a3671745
Sent from the qooxdoo-devel forum at Nabble.com.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel