added #selectFrom:to:
authorClaus Gittinger <cg@exept.de>
Thu, 09 Dec 1999 23:51:23 +0100
changeset 2081 7a72a50c0f22
parent 2080 620d5ac7dee5
child 2082 d3ccb78e8c03
added #selectFrom:to:
EnterBox.st
--- a/EnterBox.st	Thu Dec 09 23:50:49 1999 +0100
+++ b/EnterBox.st	Thu Dec 09 23:51:23 1999 +0100
@@ -383,7 +383,13 @@
 initialText:aString selectFrom:start to:stop
     "define the initial text in the enterfield, and the part to be selected"
 
-    enterField initialText:aString.
+    self initialText:aString.
+    self selectFrom:start to:stop
+!
+
+selectFrom:start to:stop
+    "define the initial selection in the enterfield"
+
     enterField selectFromLine:1 col:start toLine:1 col:stop
 ! !
 
@@ -666,5 +672,5 @@
 !EnterBox class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/EnterBox.st,v 1.51 1999-09-22 16:21:18 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/EnterBox.st,v 1.52 1999-12-09 22:51:23 cg Exp $'
 ! !