When the user clicks on a cell it switches into edit-mode. Is there some way to make cells static?
You can use the CGXStatic control. It is recommended that you also set the cell read only so the user cannot paste data into the cell or accidentally press DELETE and clear the cell.
Example:
SetStyleRange(CGXRange(1,1,CAL_ROWS,CAL_COLS),
CGXStyle( )
.SetControl(GX_IDS_CTRL_STATIC)
.SetReadOnly(TRUE)
.SetFont(CGXFont( ).SetBold(TRUE).SetSize(10))
.SetInterior(RGB(192,192,192)) // light grey
.SetHorizontalAlignment(DT_CENTER)
.SetVerticalAlignment(DT_VCENTER)
);