-
Notifications
You must be signed in to change notification settings - Fork 8
/
frmControls.frm
100 lines (94 loc) · 3.26 KB
/
frmControls.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
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
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmControls
Caption = "Controls window"
ClientHeight = 4065
ClientLeft = 45
ClientTop = 330
ClientWidth = 5550
Icon = "frmControls.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 4065
ScaleWidth = 5550
Begin MSComctlLib.ListView lsvControls
Height = 4095
Left = 0
TabIndex = 0
Top = 0
Width = 5535
_ExtentX = 9763
_ExtentY = 7223
View = 3
LabelEdit = 1
Sorted = -1 'True
MultiSelect = -1 'True
LabelWrap = -1 'True
HideSelection = -1 'True
AllowReorder = -1 'True
FullRowSelect = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 5
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "Address"
Object.Width = 3175
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "Control"
Object.Width = 1235
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "Mode"
Object.Width = 1235
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "Level"
Object.Width = 1235
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "Logic"
Object.Width = 10583
EndProperty
End
End
Attribute VB_Name = "frmControls"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If (UnloadMode = vbFormControlMenu) Then
Cancel = True
Me.Hide
End If
End Sub
Private Sub Form_Resize()
Call FormResizer(Me, Me.lsvControls)
End Sub
Private Sub lsvControls_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
Call ListViewSort(lsvControls, ColumnHeader)
End Sub
Private Sub lsvControls_DblClick()
If (lsvControls.ListItems.Count) Then
Call SelectAddressInMetaCode(Me.lsvControls.SelectedItem.Text)
End If
End Sub
Private Sub lsvControls_KeyUp(KeyCode As Integer, Shift As Integer)
If (lsvControls.ListItems.Count) Then
Call SelectPointerInBar(GetAddressPosition(lsvControls.SelectedItem.Text))
End If
End Sub
Private Sub lsvControls_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If (lsvControls.ListItems.Count) Then
Call SelectPointerInBar(GetAddressPosition(lsvControls.SelectedItem.Text))
End If
End Sub