<< Return to Main Index

< Return to Class Index

CGXControl::CanFloatCell

virtual BOOL CanFloatCell(ROWCOL nRow, ROWCOL nCol, const CGXStyle& style, BOOL bFloatOrFlood);

nRow

Specifies the row id.

nCol

Specifies the column id.

style

Const reference to the style object with all style information for the cell.

bFloatOrFlood

TRUE if the grid wants to determine if the cell can float over other cells; FALSE if the grid wants to know if the cell can be flooded (hidden) from another floating cell.

Return Value

When called with TRUE this function returns TRUE if the cell can float over other cells and FALSE otherwise.

When called with FALSE this function returns TRUE if another cell is allowed to flood it (i.e., draw over it) and FALSE if not.

Remarks

Objective Grid calls this method to check if it is possible to float a cell, or to hide a cell by flooding it from another floating cell.

CGXGridCore::CanFloatCell checks CGXStyle::SetFloatCell and CGXStyle::SetFloodCell for the given cell. If these settings are enabled, it will check CGXControl::CanFloatCell. Depending on the cell type, CGXControl::CanFloatCell will return TRUE or FALSE.

CGXStatic and derivatives normally support floating cells and will therefore return TRUE. List boxes, combo boxes and rich edit cells don’t support floating cells and will therefore return FALSE.

See Also

CGXGridCore::CanFloatCell CGXStyle::SetFloatCell CGXStyle::SetFloodCell CGXGridCore::SetFloatCellsMode

CGXControl

Class Overview | Class Members