OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / build / ja-jp / formdesigner / tests / indexstart / indexstartController.ring
diff --git a/applications/build/ja-jp/formdesigner/tests/indexstart/indexstartController.ring b/applications/build/ja-jp/formdesigner/tests/indexstart/indexstartController.ring
new file mode 100644 (file)
index 0000000..302cb49
--- /dev/null
@@ -0,0 +1,29 @@
+# Form/Window Controller - Source Code File
+
+load "indexstartView.ring"
+
+import System.GUI
+
+if IsMainSourceFile() {
+       new App {
+               StyleFusion()
+               open_window(:indexstartController)
+               exec()
+       }
+}
+
+class indexstartController from windowsControllerParent
+
+       oView = new indexstartView
+
+       func GetIndex
+               oView {
+                       lineedit1.setText( ""+ listwidget1.currentRow() )
+                       lineedit2.setText( ""+ combobox1.currentindex() )
+               }
+
+       func SelectFirst 
+               oView {
+                       listwidget1.setcurrentrow(1,3)
+                       combobox1.setcurrentindex(1)
+               }