From 09daf20b81cdae78772f07c0af22a571d7cc73eb Mon Sep 17 00:00:00 2001
From: Michael R Sweet This can act like any of the subclasses of Fl_Input, by setting
type() to one of the following values: Description
This is a virtual base class below
Fl_Input. It has all the same interfaces, but lacks the
-handle() and draw() method. You may want to subclass it
-if you are one of those people who likes to change how the editing keys
-work.
+handle() and draw() method. You may want to subclass it
+if you are one of those people who likes to change how the editing keys
+work.
@@ -73,78 +73,78 @@ type() to one of the following values:
Sets or returns the maximum length of the input field.
Changing these values causes a redraw(). The new values -are bounds checked. The return value is non-zero if the new position + The input widget maintains two pointers into the string. The +"position" is where the cursor is. The "mark" is the other end of the +selected text. If they are equal then there is no selection. Changing +this does not affect the clipboard (use copy() to do that). +
Changing these values causes a redraw(). The new values +are bounds checked. The return value is non-zero if the new position is different than the old one. position(n) is the same as position(n,n). mark(n) is the same as position(position(),n).
Set start and end equal to not delete anything. +a and b (either one may be less or equal to the other), +and then inserts the string insert at that point and leaves +the mark() and position() after the insertion. Does +the callback if when() FL_WHEN_CHANGED and there is a change. +
Set start and end equal to not delete anything. Set insert to NULL to not insert anything.
-length must be zero or strlen(insert), this saves -a tiny bit of time if you happen to already know the length of the -insertion, or can be used to insert a portion of a string or a string +
length must be zero or strlen(insert), this saves +a tiny bit of time if you happen to already know the length of the +insertion, or can be used to insert a portion of a string or a string containing nul's.
a and b are clamped to the 0..size() range, so it is safe to pass any values.
-cut() and insert() are just inline functions that +
cut() and insert() are just inline functions that call replace().
If you want the data to go into the clipboard, do Fl_Input_::copy() before calling Fl_Input_::cut(), or do Fl_Input_::copy_cuts() afterwards.
-