bOk = MTblDisableCell( hWndCol, nRow, bDisable )

Disables or enables a cell.

Parameters
hWndCol
Window Handle: Handle of the column

nRow
Number: Row number

bDisable
Boolean: TRUE = disable, FALSE = enable

Return
Boolean: TRUE if successful or FALSE if an error occurs

Example
In this example the selected column's cells of the context row are disabled:

Set nRow = SalTblQueryContext( hWndTbl )
Set hWndCol = SalGetFirstChild( hWndTbl, TYPE_TableColumn )
While hWndCol
 If SalTblQueryColumnFlags( hWndCol, COL_Selected )
   Call MTblDisableCell( hWndCol, nRow, TRUE )
 Set hWndCol = SalGetNextChild( hWndCol, TYPE_TableColumn )

Remarks
Enabling cells only works if the cell's column is enabled.
The cell is really disabled, that means that the cell never gets the focus. Even SalTblSetFocusCell returns FALSE if you try to set the focus to a disabled cell.

See also
Disable cells and rows

Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents