MTblDefineCellType

Functions ›› MTblDefine... ›› MTblDefineCell... ››
Parent Previous Next

bOk = MTblDefineCellType( hWndCol, nRow, nType, nFlags, nLines, sCheckedVal, sUnCheckedVal )

Defines the type of a cell.

Parameters
hWndCol
Window Handle: Handle of the column.

nRow
Number: Number of the row.

nType
Number: The desired cell type:

Type

Meaning

COL_CellType_Undefined

Undefined, cell has the type of the column

COL_CellType_Standard

Standard edit

COL_CellType_CheckBox

Checkbox

COL_CellType_DropDownList

Drop down list

COL_CellType_PopupEdit

Popup edit

nFlags
Number: Flags:

Flag

Meaning

Valid for type

COL_CheckBox_IgnoreCase

See TD documentation of SalTblDefineCheckBoxColumn

COL_CellType_CheckBox

COL_DropDownList_Sorted

See TD documentation of SalTblDefineDropDownList

COL_CellType_DropDownList

COL_DropDownList_VScroll

See TD documentation of SalTblDefineDropDownList

COL_CellType_DropDownList

COL_DropDownList_Auto

See TD documentation of SalTblDefineDropDownList

COL_CellType_DropDownList

COL_DropDownList_Editable

See TD documentation of SalTblDefineDropDownList

COL_CellType_DropDownList

nLines
Number: Number of lines. Valid for types COL_CellType_DropDownList and COL_CellType_PopupEdit.

sCheckedVal
String: The value when a checkbox is checked. Valid for type COL_CellType_CheckBox.

sUnCheckedVal
String: The value when a checkbox is unchecked. Valid for type COL_CellType_CheckBox.

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

Example
In this example a cell is defined as a sorted drop down list with 20 lines:

Call MTblDefineCellType( hWndCol, nRow, COL_CellType_DropDownList, COL_DropDownList_Sorted, 20, STRING_Null, STRING_Null )

See also
Cell types

Created with the Personal Edition of HelpNDoc: Easy EBook and documentation generator