OSDN Git Service

776cbfc02346842f7d5ecd80a3424f8dd5599f65
[ring-lang-081/ring.git] / applications / formdesigner / source / tests / twowindowspart3 / 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:32:28
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(426,400)
23                 setWindowTitle("The First Window")
24                 setstylesheet("background-color:#ffffff;") 
25                 Button1 = new pushbutton(win) {
26                         move(16,81)
27                         resize(389,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                 Label1 = new label(win) {
39                         move(15,205)
40                         resize(393,47)
41                         setstylesheet("color:black;background-color:;")
42                         oFont = new qfont("",0,0,0)
43                         oFont.fromstring("MS Shell Dlg 2,16,-1,5,50,0,0,0,0,0")
44                         setfont(oFont)
45                         oFont.delete()
46                         setText("")
47                         setAlignment(Qt_AlignLeft |  Qt_AlignVCenter)
48                 }
49         }
50
51 # End of the Generated Source Code File...