forked from fblumenberg/BaseflightGUI2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodLiveView.vb
29 lines (26 loc) · 961 Bytes
/
modLiveView.vb
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
Module modLiveView
Public indicators As indicator_lamp()
Public Sub createIndicatorLamps()
'Build indicator lamps array
Dim rowspace As Integer = 22
indicators = New indicator_lamp(iCheckBoxItems - 1) {}
Dim row As Integer = 0
Dim col As Integer = 0
Dim startx As Integer = 800
Dim starty As Integer = 3
For i As Integer = 0 To iCheckBoxItems - 1
indicators(i) = New indicator_lamp()
indicators(i).Location = New Point(startx + col * 52, starty + row * 19)
indicators(i).Visible = True
indicators(i).Text = names(i)
indicators(i).indicator_color = 1
indicators(i).Anchor = AnchorStyles.Right
Me.splitContainer2.Panel2.Controls.Add(indicators(i))
col += 1
If col = 3 Then
col = 0
row += 1
End If
Next
End Sub
End Module