OSDN Git Service

Ring 1.10 以来となる開発環境の日本語ローカライズ版 (評価版) を追加 (ノートパッド、フォームデザイナー、対話型実行環境、ファイルの検索)。
[ring-lang-081/ring.git] / applications / formdesigner / source / tests / labelandbuttoncolors / labelandbuttoncolorsView.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:29:38
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 labelandbuttoncolorsView { win.show() } 
15                 exec()
16         }
17 }
18
19 class labelandbuttoncolorsView from WindowsViewParent
20         win = new MainWindow() { 
21                 move(39,79)
22                 resize(400,280)
23                 setWindowTitle("Label and Button Colors")
24                 setstylesheet("background-color:;") 
25                 Label1 = new label(win) {
26                         move(37,32)
27                         resize(311,66)
28                         setstylesheet("color:#00007f;background-color:#00ff7f;")
29                         oFont = new qfont("",0,0,0)
30                         oFont.fromstring("MS Shell Dlg 2,18,-1,5,50,0,0,0,0,0")
31                         setfont(oFont)
32                         oFont.delete()
33                         setText("Hello, World!")
34                         setAlignment(Qt_AlignHCenter |  Qt_AlignVCenter)
35                 }
36                 Button1 = new pushbutton(win) {
37                         move(112,154)
38                         resize(158,43)
39                         setstylesheet("color:black;background-color:#ffff00;")
40                         oFont = new qfont("",0,0,0)
41                         oFont.fromstring("MS Shell Dlg 2,16,-1,5,50,0,0,0,0,0")
42                         setfont(oFont)
43                         oFont.delete()
44                         setText("Close")
45                         setClickEvent(Method(:CloseWindow))
46                         setBtnImage(Button1,"")
47                         
48                 }
49         }
50
51 # End of the Generated Source Code File...