OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / formdesigner / source / tests / twowindows / firstwindowView.ring
1 # Form/Window View - Generated Source Code File 
2 # Generated by the Ring 1.11 Form Designer
3 # Date : 17/09/2019
4 # Time : 20:31:52
5
6 Load "stdlibcore.ring"
7 Load "guilib.ring"
8
9 import System.GUI
10
11 if IsMainSourceFile() { 
12         new App {
13                 StyleFusion()
14                 new firstwindowView { win.show() } 
15                 exec()
16         }
17 }
18
19 class firstwindowView from WindowsViewParent
20         win = new MainWindow() { 
21                 move(47,66)
22                 resize(400,400)
23                 setWindowTitle("The First Window")
24                 setstylesheet("background-color:#ffffff;") 
25                 Button1 = new pushbutton(win) {
26                         move(18,81)
27                         resize(363,61)
28                         setstylesheet("color:black;background-color:#ffff7f;")
29                         oFont = new qfont("",0,0,0)
30                         oFont.fromstring("MS Shell Dlg 2,16,-1,5,50,0,0,0,0,0")
31                         setfont(oFont)
32                         oFont.delete()
33                         setText("Open The Second Window")
34                         setClickEvent(Method(:OpenSecondWindow))
35                         setBtnImage(Button1,"")
36                         
37                 }
38         }
39
40 # End of the Generated Source Code File...