OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / rnote / source / rnoteeditorevents.ring
diff --git a/applications/rnote/source/rnoteeditorevents.ring b/applications/rnote/source/rnoteeditorevents.ring
new file mode 100644 (file)
index 0000000..bf8b3c7
--- /dev/null
@@ -0,0 +1,19 @@
+# The Ring Notepad Application (RNote)
+# Author : Mahmoud Fayed <msfclipper@yahoo.com>
+
+class RNoteEditorEvents
+
+       func TextChanged
+               lAskToSave = true
+               SetFont()
+               SetActiveLineColor()
+
+       func CursorPositionChanged
+               nLine = textedit1.textcursor().blocknumber()+1
+               StatusMessage(" Line : "+nLine+
+                                       " Column : " +(textedit1.textcursor().columnnumber()+1) +
+                                       " Total Lines : " + textedit1.document().linecount())
+               SetActiveLineColor()
+               if cActiveFileName != NULL
+                       aFilesLines[cActiveFileName] = nLine
+               ok