1 | VERSION 5.00
|
---|
2 | Object = "{0D452EE1-E08F-101A-852E-02608C4D0BB4}#2.0#0"; "FM20.DLL"
|
---|
3 | Begin VB.Form BootPage
|
---|
4 | BackColor = &H00FFFFFF&
|
---|
5 | Caption = "DRBL Helper"
|
---|
6 | ClientHeight = 1935
|
---|
7 | ClientLeft = 4305
|
---|
8 | ClientTop = 5565
|
---|
9 | ClientWidth = 7560
|
---|
10 | Icon = "BootPage.frx":0000
|
---|
11 | LinkTopic = "Form1"
|
---|
12 | MaxButton = 0 'False
|
---|
13 | ScaleHeight = 1935
|
---|
14 | ScaleWidth = 7560
|
---|
15 | Begin MSForms.CommandButton cmdExit
|
---|
16 | Height = 375
|
---|
17 | Left = 6240
|
---|
18 | TabIndex = 4
|
---|
19 | Top = 1440
|
---|
20 | Width = 1215
|
---|
21 | Caption = "Exit"
|
---|
22 | Size = "2143;661"
|
---|
23 | FontName = "·s²Ó©úÅé"
|
---|
24 | FontHeight = 180
|
---|
25 | FontCharSet = 136
|
---|
26 | FontPitchAndFamily= 34
|
---|
27 | ParagraphAlign = 3
|
---|
28 | End
|
---|
29 | Begin MSForms.CommandButton cmdPrevious
|
---|
30 | Height = 375
|
---|
31 | Left = 4920
|
---|
32 | TabIndex = 3
|
---|
33 | Top = 1440
|
---|
34 | Width = 1215
|
---|
35 | Caption = "Previous"
|
---|
36 | Size = "2143;661"
|
---|
37 | FontName = "·s²Ó©úÅé"
|
---|
38 | FontHeight = 180
|
---|
39 | FontCharSet = 136
|
---|
40 | FontPitchAndFamily= 34
|
---|
41 | ParagraphAlign = 3
|
---|
42 | End
|
---|
43 | Begin MSForms.CommandButton cmdRun
|
---|
44 | Height = 375
|
---|
45 | Left = 2160
|
---|
46 | TabIndex = 2
|
---|
47 | Top = 720
|
---|
48 | Width = 3975
|
---|
49 | Caption = "Make USB flash drive bootable"
|
---|
50 | Size = "7011;661"
|
---|
51 | FontName = "·s²Ó©úÅé"
|
---|
52 | FontHeight = 180
|
---|
53 | FontCharSet = 136
|
---|
54 | FontPitchAndFamily= 34
|
---|
55 | ParagraphAlign = 3
|
---|
56 | End
|
---|
57 | Begin MSForms.Label lbl2
|
---|
58 | Height = 255
|
---|
59 | Left = 4200
|
---|
60 | TabIndex = 1
|
---|
61 | Top = 240
|
---|
62 | Width = 1215
|
---|
63 | ForeColor = 16711680
|
---|
64 | BackColor = 16777215
|
---|
65 | VariousPropertyBits= 8388627
|
---|
66 | Size = "2143;450"
|
---|
67 | FontName = "·s²Ó©úÅé"
|
---|
68 | FontHeight = 180
|
---|
69 | FontCharSet = 136
|
---|
70 | FontPitchAndFamily= 34
|
---|
71 | End
|
---|
72 | Begin MSForms.Label lbl1
|
---|
73 | Height = 495
|
---|
74 | Left = 2160
|
---|
75 | TabIndex = 0
|
---|
76 | Top = 240
|
---|
77 | Width = 1695
|
---|
78 | ForeColor = 12632064
|
---|
79 | BackColor = 16777215
|
---|
80 | VariousPropertyBits= 8388627
|
---|
81 | Caption = "USB flash drive"
|
---|
82 | Size = "2990;873"
|
---|
83 | FontName = "·s²Ó©úÅé"
|
---|
84 | FontHeight = 180
|
---|
85 | FontCharSet = 136
|
---|
86 | FontPitchAndFamily= 34
|
---|
87 | End
|
---|
88 | Begin VB.Image Image1
|
---|
89 | Height = 1935
|
---|
90 | Left = 0
|
---|
91 | Picture = "BootPage.frx":0CCA
|
---|
92 | Stretch = -1 'True
|
---|
93 | Top = 0
|
---|
94 | Width = 1935
|
---|
95 | End
|
---|
96 | End
|
---|
97 | Attribute VB_Name = "BootPage"
|
---|
98 | Attribute VB_GlobalNameSpace = False
|
---|
99 | Attribute VB_Creatable = False
|
---|
100 | Attribute VB_PredeclaredId = True
|
---|
101 | Attribute VB_Exposed = False
|
---|
102 | Private Sub cmdExit_Click()
|
---|
103 |
|
---|
104 |
|
---|
105 | If InstallPage.Visible = False Then
|
---|
106 | Unload InstallPage
|
---|
107 | End If
|
---|
108 |
|
---|
109 | If FormatPage.Visible = False Then
|
---|
110 | Unload FormatPage
|
---|
111 | End If
|
---|
112 |
|
---|
113 | If LanguagePage.Visible = False Then
|
---|
114 | Unload LanguagePage
|
---|
115 | End If
|
---|
116 |
|
---|
117 | Unload Me
|
---|
118 | End Sub
|
---|
119 |
|
---|
120 | Private Sub cmdPrevious_Click()
|
---|
121 | Me.Hide
|
---|
122 | InstallPage.Show
|
---|
123 | End Sub
|
---|
124 |
|
---|
125 | Private Sub cmdRun_Click()
|
---|
126 | 'Create Boot Disk
|
---|
127 | Dim args As String
|
---|
128 | Dim strCmd As String
|
---|
129 |
|
---|
130 | args = "-s " & GetDriveID & ": "
|
---|
131 | strCmd = """" & G_LibPath & "syslinux.exe"" " & args
|
---|
132 | ExecCmd strCmd
|
---|
133 | ReadyDialog.lblMsg.Caption = GetString(11)
|
---|
134 |
|
---|
135 | AlwaysOnTop ReadyDialog, True
|
---|
136 | ReadyDialog.Show
|
---|
137 |
|
---|
138 |
|
---|
139 | End Sub
|
---|
140 |
|
---|
141 |
|
---|
142 | Private Sub Form_Load()
|
---|
143 | Me.Top = FormatPage.Top
|
---|
144 | Me.Left = FormatPage.Left
|
---|
145 | SetLocale
|
---|
146 | End Sub
|
---|
147 |
|
---|
148 | Public Sub SetLocale()
|
---|
149 | lbl2.Caption = GetDriveID
|
---|
150 |
|
---|
151 | '
|
---|
152 | If (LoadLocalizedResources) Then
|
---|
153 | ' Pull a string resource out of a local resource
|
---|
154 | ' object for demonstration purposes.
|
---|
155 | lbl1.Caption = GetString(5)
|
---|
156 | cmdRun.Caption = GetString(6)
|
---|
157 | cmdPrevious.Caption = GetString(16)
|
---|
158 | cmdExit.Caption = GetString(4)
|
---|
159 | 'Me.Caption = GetString()
|
---|
160 | End If
|
---|
161 | End Sub
|
---|
162 |
|
---|
163 | Private Sub Form_Unload(Cancel As Integer)
|
---|
164 | cmdExit_Click
|
---|
165 | End Sub
|
---|