diff --git a/example-table2/main.go b/example-table2/main.go index f6c1def..df4e410 100644 --- a/example-table2/main.go +++ b/example-table2/main.go @@ -293,12 +293,13 @@ func demoSetCellValue(mh *modelHandler, m *ui.TableModel, row, column int, value } func (mh *modelHandler) NumRows(m *ui.TableModel) int { - // log.Println("NumRows() with m=", m) + log.Println("NumRows() with m=", m) return mh.rows } // FYI: this routine seems to be called around 10 to 100 times a second for each table func (mh *modelHandler) ColumnTypes(m *ui.TableModel) []ui.TableValue { + log.Println("ColumnTypes()") if (mh.funcColumnTypes == nil) { log.Println("ColumnTypes NOT DEFINED. This table wasn't setup correctly! mh.funcColmnTypes == nil") os.Exit(-1) @@ -308,6 +309,7 @@ func (mh *modelHandler) ColumnTypes(m *ui.TableModel) []ui.TableValue { // TODO: Figure out why this is being called 1000 times a second (10 times for each row & column) func (mh *modelHandler) CellValue(m *ui.TableModel, row, column int) ui.TableValue { + log.Println("CellValue row = ",row, "column = ", column) if (mh.scanCellValue == nil) { log.Println("CellValue NOT DEFINED. This table wasn't setup correctly! mh.scanCellValue == nil") os.Exit(-1)