On Wed, Mar 31, 2010 at 04:47, acassarino <[email protected]> wrote:
>
> Hi Derell,
>
> I'm using playground with the "shorten URL" button
>
> http://tinyurl.com/ygcytcw
>
Ok, I see what your problem is. The method table.setContextMenuHandler()
takes as its second parameter a reference to a function, not the results of
calling that function. Instead of this:
table.setContextMenuHandler(2, contextMenuHandlerEmpty(1,1,table,
tableModel,menu));
you need to just pass the function reference:
table.setContextMenuHandler(2, contextMenuHandlerEmpty);
Now I see that your're actually trying to manipulate a different column's
menu. That's a strange thing to do, and would result in a very unintuitive
and confusing behavior. If you end up still wanting to do that, you'll
likely need to create a separate function that you pass to
setContextMenuHandler that then calls your handler that attempts to do
something with the other column. You're in uncharted territory there,
though, so you'll be pretty much on your own. To do that, I'd recommend
looking carefully at the source code dealing with context menus in both the
mixin that you're using here and in qx.ui.core.Widget.
Cheers,
Derrell
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel