OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / build / ja-jp / formdesigner / tests / twowindowspart3 / secondwindowView.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:32:33
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 secondwindowView { win.show() } 
15                 exec()
16         }
17 }
18
19 class secondwindowView from WindowsViewParent
20         win = new MainWindow() { 
21                 move(111,91)
22                 resize(400,400)
23                 setWindowTitle("The Second Window")
24                 setstylesheet("background-color:#00007f;") 
25                 Button1 = new pushbutton(win) {
26                         move(56,81)
27                         resize(277,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("Close Window")
34                         setClickEvent(Method(:CloseWindow))
35                         setBtnImage(Button1,"")
36                         
37                 }
38                 Label1 = new label(win) {
39                         move(57,181)
40                         resize(279,56)
41                         setstylesheet("color:#ffffff;background-color:;")
42                         oFont = new qfont("",0,0,0)
43                         oFont.fromstring("Arial")
44                         setfont(oFont)
45                         oFont.delete()
46                         setText("")
47                         setAlignment(Qt_AlignLeft |  Qt_AlignVCenter)
48                 }
49                 Button3 = new pushbutton(win) {
50                         move(58,255)
51                         resize(277,61)
52                         setstylesheet("color:black;background-color:#ffff7f;")
53                         oFont = new qfont("",0,0,0)
54                         oFont.fromstring("MS Shell Dlg 2,16,-1,5,50,0,0,0,0,0")
55                         setfont(oFont)
56                         oFont.delete()
57                         setText("Message to First Window")
58                         setClickEvent(Method(:sendMessage))
59                         setBtnImage(Button3,"")
60                         
61                 }
62         }
63
64 # End of the Generated Source Code File...