if ( table->CanGetValueAs(row, col, wxGRID_VALUE_NUMBER) )
{
int choiceno = table->GetValueAsLong(row, col);
if ( table->CanGetValueAs(row, col, wxGRID_VALUE_NUMBER) )
{
int choiceno = table->GetValueAsLong(row, col);
// space at the end of the line. But it
// is invisible , simplifies the size calculation
// and ensures tokens are separated in the display
// space at the end of the line. But it
// is invisible , simplifies the size calculation
// and ensures tokens are separated in the display
// TODO some special colours for attr.IsReadOnly() case?
// different coloured text when the grid is disabled
// TODO some special colours for attr.IsReadOnly() case?
// different coloured text when the grid is disabled
{
wxCoord x = 0, y = 0, max_x = 0;
dc.SetFont(attr.GetFont());
{
wxCoord x = 0, y = 0, max_x = 0;
dc.SetFont(attr.GetFont());
while ( tk.HasMoreTokens() )
{
dc.GetTextExtent(tk.GetNextToken(), &x, &y);
while ( tk.HasMoreTokens() )
{
dc.GetTextExtent(tk.GetNextToken(), &x, &y);