Hello,

I have built and run the example "table-spreadsheet-with-keyboard-nav.cxx" 
within Visual Studio Express C++ and using FLTK library 1.3. However the code 
crashes:

main()

  308: table->rows(11)
    88: set_value_hide()
      82: values[row_edit][col_edit] = atoi(input->value());

Line 82 fails as row_edit and col_edit are not initialised.

1) Has anyone discovered this problem before? If so how did you fix this?
2) As we are just initialsing the size of the table for the first time, 
row_edit and col_edit are not set. So is it best to:
a. Set row_edit and col_edit to -1 in the constructor
b. In rows() and cols() do not call set_value_hide if either row_edit or 
col_edit are -1?



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to