aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-06-24 00:35:46 +0000
committernyamatongwe <devnull@localhost>2000-06-24 00:35:46 +0000
commit94b9dc447ea7ca09745e4a8e2d8786fda5655962 (patch)
tree1bb9e279d9cc08a6c6f649cf18c2e60326a06078 /include
parenta53dd61d8a62229c0d3cc6f1afb314ae7e0fb8c3 (diff)
downloadscintilla-mirror-94b9dc447ea7ca09745e4a8e2d8786fda5655962.tar.gz
Added methods for getting and setting the start and end of the selection.rel-1-27
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h6
-rw-r--r--include/Scintilla.iface15
2 files changed, 21 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 04d67e78a..61c393324 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -229,7 +229,13 @@ void Scintilla_RegisterClasses(HINSTANCE hInstance);
#define SCI_GETCODEPAGE SCI_START + 137
#define SCI_GETCARETFORE SCI_START + 138
#define SCI_GETUSEPALETTE SCI_START + 139
+
#define SCI_GETREADONLY SCI_START + 140
+#define SCI_SETCURRENTPOS SCI_START + 141
+#define SCI_SETSELECTIONSTART SCI_START + 142
+#define SCI_GETSELECTIONSTART SCI_START + 143
+#define SCI_SETSELECTIONEND SCI_START + 144
+#define SCI_GETSELECTIONEND SCI_START + 145
#define SCI_CALLTIPSHOW SCI_START + 200
#define SCI_CALLTIPCANCEL SCI_START + 201
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index d2195d3ef..36828e68e 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -481,6 +481,21 @@ get bool GetUsePalette=2139(,)
# In read-only mode?
get bool GetReadOnly=2140(,)
+# Sets the position of the caret.
+set void SetCurrentPos=2141(position pos,)
+
+# Sets the position that starts the selection - this becomes the anchor.
+set void SetSelectionStart=2142(position pos,)
+
+# Returns the position at the start of the selection.
+get position GetSelectionStart=2143(,)
+
+# Sets the position that ends the selection - this becomes the currentPosition.
+set void SetSelectionEnd=2144(position pos,)
+
+# Returns the position at the end of the selection.
+get position GetSelectionEnd=2145(,)
+
# Show a call tip containing a definition near position pos.
fun void CallTipShow=2200(position pos, string definition)