1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
|
Public Class formDisplayproperties
Private Sub ComboBox5_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox5.SelectedIndexChanged
If ComboBox5.SelectedItem = "Small Fonts" Then
fontsizeinfo.Text = "Normal size (96 dpi)"
End If
If ComboBox5.SelectedItem = "Large Fonts" Then
fontsizeinfo.Text = "125% Normal size (120 dpi)"
End If
End Sub
Private Sub TrackBarscreenres_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBarscreenres.Scroll
If TrackBarscreenres.Value = 1 Then
screenreslabel.Text = "640 by 480 pixels"
End If
If TrackBarscreenres.Value = 2 Then
screenreslabel.Text = "800 by 512 pixels"
End If
If TrackBarscreenres.Value = 3 Then
screenreslabel.Text = "800 by 600 pixels"
End If
If TrackBarscreenres.Value = 4 Then
screenreslabel.Text = "896 by 600 pixels"
End If
If TrackBarscreenres.Value = 5 Then
screenreslabel.Text = "912 by 642 pixels"
End If
If TrackBarscreenres.Value = 6 Then
screenreslabel.Text = "1024 by 768 pixels"
End If
If TrackBarscreenres.Value = 7 Then
screenreslabel.Text = "1152 by 768 pixels"
End If
If TrackBarscreenres.Value = 8 Then
screenreslabel.Text = "1152 by 864 pixels"
End If
If TrackBarscreenres.Value = 9 Then
screenreslabel.Text = "1280 by 1024 pixels"
End If
If TrackBarscreenres.Value = 10 Then
screenreslabel.Text = "1440 by 900 pixels"
End If
If TrackBarscreenres.Value = 11 Then
screenreslabel.Text = "1600 by 1024 pixels"
End If
If TrackBarscreenres.Value = 12 Then
screenreslabel.Text = "1600 by 1200 pixels"
End If
End Sub
Private Sub colorpalettecbox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles colorpalettecbox.SelectedIndexChanged
If colorpalettecbox.SelectedItem = "16 Color" Then
colourpaletepicturebox.Image = My.Resources._16_color
End If
If colorpalettecbox.SelectedItem = "256 Color" Then
colourpaletepicturebox.Image = My.Resources._256_color
End If
If colorpalettecbox.SelectedItem = "High Color (16 bit)" Then
colourpaletepicturebox.Image = My.Resources.high_color
End If
If colorpalettecbox.SelectedItem = "True Color (32 bit)" Then
colourpaletepicturebox.Image = My.Resources.true_color
End If
End Sub
Private Sub Button39_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles form1.Click
colourselectorexample.Hide()
End Sub
Private Sub Whitecs_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Whitecs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.White
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.White
End If
End Sub
Private Sub blackcs_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles blackcs.MouseClick
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Black
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Black
End If
End Sub
Private Sub lightgreycs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lightgreycs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.LightGray
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.LightGray
End If
End Sub
Private Sub greycs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles greycs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Gray
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Gray
End If
End Sub
Private Sub redcs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles redcs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Red
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Red
End If
End Sub
Private Sub darkredcs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles darkredcs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.DarkRed
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.DarkRed
End If
End Sub
Private Sub yellowcs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles yellowcs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Yellow
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Yellow
End If
End Sub
Private Sub olivecs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles olivecs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Olive
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Olive
End If
End Sub
Private Sub limecs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles limecs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Lime
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Lime
End If
End Sub
Private Sub forestgreencs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles forestgreencs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.ForestGreen
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.ForestGreen
End If
End Sub
Private Sub cyancs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cyancs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Cyan
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Cyan
End If
End Sub
Private Sub tealcs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tealcs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Teal
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Teal
End If
End Sub
Private Sub bluecs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bluecs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Blue
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Blue
End If
End Sub
Private Sub darkbluecs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles darkbluecs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.DarkBlue
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.DarkBlue
End If
End Sub
Private Sub DarkMagentacs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DarkMagentacs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.DarkMagenta
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.DarkMagenta
End If
End Sub
Private Sub palegreencs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles palegreencs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.PaleGreen
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.PaleGreen
End If
End Sub
Private Sub lightbluecs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lightbluecs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.LightBlue
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.LightBlue
End If
End Sub
Private Sub whitesmokecs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles whitesmokecs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.WhiteSmoke
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.WhiteSmoke
End If
End Sub
Private Sub darkgraycs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles darkgraycs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.DarkGray
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.DarkGray
End If
End Sub
Private Sub magentacs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles magentacs.Click
If cboxitemselect.SelectedItem = "Desktop" Then
appearencesettingspanel.BackColor = Color.Magenta
End If
If cboxitemselect.SelectedItem = "Active Title Bar" Then
exampletopbaractivewindow.BackColor = Color.Magenta
End If
End Sub
Private Sub applysettings_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles applysettings.Click
Windows95.BackColor = appearencesettingspanel.BackColor
Windows95.exampleprogramtopbar.BackColor = exampletopbaractivewindow.BackColor
Me.programtopbar.BackColor = exampletopbaractivewindow.BackColor
End Sub
Private Sub PictureBox13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox13.Click
colourselectorexample.Show()
End Sub
Private Sub formDisplayproperties_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
look.Start()
End Sub
Dim moveable As Boolean = True
Dim mexlocation, meylocation As Integer
Dim mewidth, meheight As Integer
Dim maximize As Boolean
Private Sub programtopbar_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles programtopbar.MouseDown
If moveable Then
If e.Button = MouseButtons.Left Then
programtopbar.Capture = False
Const WM_NCLBUTTONDOWN As Integer = &HA1S
Const HTCAPTION As Integer = 2
Dim msg As Message = _
Message.Create(Me.Handle, WM_NCLBUTTONDOWN, _
New IntPtr(HTCAPTION), IntPtr.Zero)
Me.DefWndProc(msg)
End If
End If
End Sub
Private Sub closebutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles closebutton.Click
Me.Close()
End Sub
Private Sub pullside_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pullside.Tick
Me.Width = Cursor.Position.X - Me.Location.X
End Sub
Private Sub pullbottom_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pullbottom.Tick
Me.Height = Cursor.Position.Y - Me.Location.Y
End Sub
Private Sub pullbs_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles pullbs.Tick
Me.Width = Cursor.Position.X - Me.Location.X
Me.Height = Cursor.Position.Y - Me.Location.Y
End Sub
Private Sub Rightpull_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles right.MouseDown
pullside.Start()
End Sub
Private Sub rightpull_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles right.MouseUp
pullside.Stop()
End Sub
Private Sub bottompull_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles bottom.MouseDown
pullbottom.Start()
End Sub
Private Sub buttompull_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles bottom.MouseUp
pullbottom.Stop()
End Sub
Private Sub bspull_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles bottomrightcorner.MouseDown
pullbs.Start()
End Sub
Private Sub bspull_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles bottomrightcorner.MouseUp
pullbs.Stop()
End Sub
Private Sub maximizebutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles maximizebutton.Click
If Not maximize Then
meylocation = Windows95.desktopicons.Height - Me.Height
mexlocation = Windows95.desktopicons.Width - Me.Width
mewidth = Me.Width
meheight = Me.Height
toprightcorner.Hide()
topleftcorner.Hide()
bottomrightcorner.Hide()
bottomleftcorner.Hide()
left.Hide()
top.Hide()
bottom.Hide()
right.Hide()
Dim w, h As Integer
w = Windows95.desktopicons.Width
h = Windows95.desktopicons.Height
Me.Location = New Point(0, 0)
Me.Size = New Size(w, h)
moveable = False
maximizebutton.Image = My.Resources.unmaximizebutton
maximize = True
Else
toprightcorner.Show()
topleftcorner.Show()
bottomrightcorner.Show()
bottomleftcorner.Show()
left.Show()
top.Show()
bottom.Show()
right.Show()
Me.Location = New Point(mexlocation, meylocation)
Me.Size = New Size(mewidth, meheight)
moveable = True
maximizebutton.Image = My.Resources.Maximize
maximize = False
End If
End Sub
Private Sub look_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles look.Tick
Me.programtopbar.BackColor = Windows95.exampleprogramtopbar.BackColor
Me.programtopbar.BackgroundImage = Windows95.exampleprogramtopbar.BackgroundImage
Me.programname.BackColor = Windows95.exampleprogramtext.BackColor
End Sub
Private Sub minimizebutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles minimizebutton.Click
Me.Hide()
End Sub
End Class
|