-
Notifications
You must be signed in to change notification settings - Fork 0
/
nbform.frm
75 lines (57 loc) · 1.63 KB
/
nbform.frm
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
*** Form frontend properties ***
VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} nbform
Caption = "Neighborhood Inputs"
ClientHeight = 5805
ClientLeft = 120
ClientTop = 450
ClientWidth = 8880
OleObjectBlob = "nbform.frx":0000
StartUpPosition = 1 'CenterOwner
End
Attribute VB_Name = "nbform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
*** Form backend ***
Private Sub cmdCancel_Click()
Unload Me
End
End Sub
Public Sub Initialize()
lbRow = sbnRows.Value
lbCol = sbnCols.Value
lbBlank = sbBlank.Value & "%"
sbRed.Max = 100 - sbBlank.Value
lbRB = sbRed.Value & "/" & sbRed.Max - sbRed.Value & " %"
lbSatisfy = sbSatisfy.Value & "%"
lbDelay = "Animation delay: " & sbDelay.Value & " milliseconds"
End Sub
Private Sub cmdOK_Click()
Unload Me
End Sub
Private Sub sbBlank_Change()
lbBlank = sbBlank.Value & "%"
sbRed.Max = 100 - sbBlank.Value
lbRB = sbRed.Value & "/" & (sbRed.Max - sbRed.Value) & " %"
End Sub
Private Sub sbDelay_Change()
lbDelay = "Animation delay: " & sbDelay.Value & " milliseconds"
End Sub
Private Sub sbnCols_Change()
lbCol = sbnCols.Value
End Sub
Private Sub sbnRows_Change()
lbRow = sbnRows.Value
End Sub
Private Sub sbRed_Change()
lbRB = sbRed.Value & "/" & (sbRed.Max - sbRed.Value) & " %"
End Sub
Private Sub sbSatisfy_Change()
lbSatisfy = sbSatisfy.Value & "%"
End Sub
'if user clicks X
Private Sub UserForm_QueryClose(cancel As Integer, CloseMode As Integer)
If CloseMode = vbFormControlMenu Then cmdCancel_Click
End Sub