What is the correct way to use FXTable::disableItem

View: New views
1 Messages — Rating Filter:   Alert me  

What is the correct way to use FXTable::disableItem

by Feng Feng :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello all,

I need to make the first column of the FXTable uneditable.
Here is what I have done.

function insertNewRow of a XXTable, a subclass of FXTable,

    insertRows(nrows, 1, true); // insert the new row on the bottom of the table.
    setCurrentItem(nrows-1, 0, true);
    makePositionVisible(current.row, 0);
   
    disableItem(current.row, 0); // however, it seems that I still can edit this cell.
also, it seems that fox doesn't dim the cell so that it looks like an uneditable cell.

Anything is wrong?


Thank you


------------------------------------------------------------------------------

_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users