summaryrefslogtreecommitdiff
path: root/examples/table-spreadsheet.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-02-04 19:21:53 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-02-04 19:21:53 +0100
commit130a1c21a7e36371f8da993c50ac7f9982c5768a (patch)
tree7a65934c072429b6d51ec53594422165b44bc77a /examples/table-spreadsheet.cxx
parent782fa4e5c80d9bf37032439f38f84e2cb376a702 (diff)
Fix deprecated warnings in examples/table* demo programs
Also: adjust comments, update copyright year
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
}