There is a known issue with IE and MTableContextMenu. Is my guess correct
that you're using IE?

Derrell


On Mon, Mar 29, 2010 at 12:37, acassarino <[email protected]> wrote:

>
>        Hi All,
>
>        I would use the menu on the table, I used the method
> setContextMenuHandler
>        in this way:
>
> -----start code-------
> qx.Class.include(qx.ui.table.Table, qx.ui.table.MTableContextMenu);
>
>    createTable : function()
>    {
>          //tableModel
>          var tableModel = new qx.ui.table.model.Simple();
>        tableModel.setColumns(["Default ctx menu #1","Default ctx menu #2",
>                                                "Disabled ctx
> menu","Context-menu selectable"]);
>
>      var rowData = this.createRandomRows();
>      tableModel.setData(rowData);
>
>      // table
>      var table = new qx.ui.table.Table(tableModel);
>
>      //menu
>      var menu = new qx.ui.menu.Menu();
>      qx.ui.menu.Menu
>      var cutButton = new qx.ui.menu.Button("Cut");
>      menu.add(cutButton);
>      menu.add(copyButton);
>
>      table.setContextMenuHandler(1,
> this._contextMenuHandlerEmpty(1,1,table,tableModel,menu));
>
>     }
>
>
>     _contextMenuHandlerEmpty : function(col, row, table,
> dataModel,contextMenu)
>    {
>      return true;
>    }
>
> ---------end code ------
>    But nothing happens.What am i doing wrong?
>   Thanks for your help.
>
>      Antonino
> --
> View this message in context:
> http://n2.nabble.com/setContextMenuHandler-tp4819179p4819179.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; 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
>



-- 
"There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious
deficiencies."

                                               C.A.R Hoare
------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to