summaryrefslogtreecommitdiff
path: root/examples/table-spreadsheet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/table-spreadsheet.cxx')
-rw-r--r--examples/table-spreadsheet.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/table-spreadsheet.cxx b/examples/table-spreadsheet.cxx
index 2b792231b..0389bf645 100644
--- a/examples/table-spreadsheet.cxx
+++ b/examples/table-spreadsheet.cxx
@@ -1,8 +1,8 @@
//
-// Simple example of an interactive spreadsheet using Fl_Table.
-// Uses Mr. Satan's technique of instancing an Fl_Input around.
+// Simple example of an interactive spreadsheet using Fl_Table.
+// Uses Mr. Satan's technique of instancing an Fl_Input around.
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -79,7 +79,7 @@ public:
input->resize(X,Y,W,H); // Move Fl_Input widget there
char s[30]; sprintf(s, "%d", values[R][C]); // Load input widget with cell's current value
input->value(s);
- input->position(0, int(strlen(s))); // Select entire input field
+ input->insert_position(0, int(strlen(s))); // Select entire input field
input->show(); // Show the input widget, now that we've positioned it
input->take_focus(); // Put keyboard focus into the input widget
}