Author: greg.ercolano
Date: 2010-12-09 23:52:05 -0800 (Thu, 09 Dec 2010)
New Revision: 7995
Log:
Small mod to spreadsheet example (single click cells)


Modified:
   branches/branch-1.3/examples/table-spreadsheet.cxx

Modified: branches/branch-1.3/examples/table-spreadsheet.cxx
===================================================================
--- branches/branch-1.3/examples/table-spreadsheet.cxx  2010-12-10 07:49:22 UTC 
(rev 7994)
+++ branches/branch-1.3/examples/table-spreadsheet.cxx  2010-12-10 07:52:05 UTC 
(rev 7995)
@@ -209,13 +209,9 @@
     case CONTEXT_CELL: {                               // A table event 
occurred on a cell
       switch (Fl::event()) {                           // see what FLTK event 
caused it
        case FL_PUSH:                                   // mouse click?
-         if (!Fl::event_clicks()) {                    // single click?
-           done_editing();                             // finish editing
-         } else {
-           Fl::event_clicks(0);                        // double click? zero 
clicks, fallthrough
-           if (R != rows()-1 && C != cols()-1 )        // only edit cells not 
in total's columns
-             start_editing(R,C);                       // start new edit
-         }
+         done_editing();                               // finish editing 
previous
+         if (R != rows()-1 && C != cols()-1 )          // only edit cells not 
in total's columns
+           start_editing(R,C);                         // start new edit
          return;
 
        case FL_KEYBOARD: {

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

Reply via email to