-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmChoice.class
65 lines (43 loc) · 1.76 KB
/
frmChoice.class
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
' Gambas class file
' ### CHOOSE INSTALL TYPE FORM ###
PUBLIC SUB Form_Show()
' set button focus:
frmMain.btnMain2.SetFocus
' set some background colours:
TextLabel1.BackColor = Global.HTMLBG
lblSubTitle.BackColor = Global.LogoBG
Panel1.BackColor = Global.LogoBG
END
PUBLIC SUB Form_Resize()
' Resize the html message:
TextLabel1.Width = ScrollView1.ClientWidth
TextLabel1.Adjust
END
PUBLIC SUB btnFullAuto_Click() ' Full-automatic.
Global.enumINSTMODE = 0 ' Full-automatic install mode.
Global.enumPARTMODE = 0 'Full-automatic partitioning
Global.enumPACKS = 0 'All packages selected
Global.enumLILOMODE = 0 'Install lilo to MBR
IF Global.DiskInfo.Count >= 1 THEN frmDriveSelect.ShowModal
IF Global.frmExitStatus = "ok" THEN
'Check space occupied by packages and make sure there is enough
IF Functions.EnoughSpace(0) = TRUE THEN
frmMain.btnMain2.Enabled = FALSE ' Disable Choices.
frmMain.btnMain6.Enabled = TRUE ' Enable Go for it!.
frmMain.btnMain6_Click ' Advance to Go for it!.
ELSE
Message.Error(Global.installDrive & " is not big enough for a full installation" & gb.NewLine & "of VectorLinux. Select a different drive" & gb.NewLine & "or otherwise chose the \"Advanced\" mode" & gb.NewLine & "and unselect packages you don't need.")
ENDIF
ENDIF
END
PUBLIC SUB btnSemiAuto_Click() ' Semi-automatic.
' Global.enumINSTMODE = 1 ' Semi-automatic install mode.
' frmMain.btnChoice.Enabled = FALSE ' Disable Choices.
' frmMain.btnPartitions.Enabled = TRUE ' Enable Partitions.
' frmMain.btnPartitions_Click ' Advance to Partitions.
END
PUBLIC SUB btnAdvanced_Click() ' Advanced.
Global.enumINSTMODE = 1 ' Advanced install mode.
frmMain.btnMain3.Enabled = TRUE ' Enable Partitions
frmMain.btnMain3_Click ' Advance to Partitions
END