-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfrm7_Dev.frm
184 lines (180 loc) · 5.64 KB
/
frm7_Dev.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
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
VERSION 5.00
Begin VB.Form frm7
BackColor = &H00000080&
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 4215
ClientLeft = 0
ClientTop = 0
ClientWidth = 9615
LinkTopic = "Form1"
ScaleHeight = 4215
ScaleWidth = 9615
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.TextBox DEV1_VL1
BackColor = &H00151500&
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFE99A&
Height = 285
Left = 600
TabIndex = 2
Text = "Item ID"
Top = 900
Width = 1455
End
Begin VB.TextBox DEV1_VL2
BackColor = &H00151500&
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFE99A&
Height = 285
Left = 600
TabIndex = 1
Text = "Result of scan"
Top = 1260
Width = 2175
End
Begin VB.CommandButton DEV1_Execute
BackColor = &H00FFC0C0&
Caption = "Exec"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 2160
Style = 1 'Graphical
TabIndex = 0
Top = 900
Width = 615
End
Begin VB.Label cmdClose
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "Menu"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 8880
TabIndex = 4
Top = 120
Width = 615
End
Begin VB.Shape Shape2
BorderColor = &H00000000&
Height = 255
Left = 8880
Top = 120
Width = 615
End
Begin VB.Shape Shape1
Height = 4215
Left = 0
Top = 0
Width = 9615
End
Begin VB.Shape Shape9
Height = 3975
Left = 120
Top = 120
Width = 9375
End
Begin VB.Line Line22
BorderColor = &H00FFFFFF&
X1 = 600
X2 = 2760
Y1 = 720
Y2 = 720
End
Begin VB.Shape Shape22
BorderColor = &H00FFFFFF&
Height = 1215
Left = 480
Top = 480
Width = 2415
End
Begin VB.Label Label56
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Dev :: Item Lookup"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFE99A&
Height = 255
Left = 480
TabIndex = 3
Top = 495
Width = 2415
End
End
Attribute VB_Name = "frm7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private MdX As Long, MdY As Long
Sub form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Compiled = True Then On Error Resume Next
If Button = 1 Then MdX = X: MdY = Y
End Sub
Sub form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Compiled = True Then On Error Resume Next
If Button = 1 Then Me.Move (Me.Left + X) - MdX, (Me.Top + Y) - MdY
frmMain.Move Me.Left, Me.Top
End Sub
Sub cmdClose_Click()
Me.Hide: frmMain.Show
End Sub
Sub Form_Load()
Me.Picture = frmMain.Picture
End Sub
' ITEM LOOKUP RELATED
Sub DEV1_VL1_click()
If Compiled = True Then On Error Resume Next
DEV1_VL1 = mReadLong(Look_ID)
End Sub
Sub DEV1_Execute_Click()
If Compiled = True Then On Error Resume Next
Dim Cont As Long, iPos As Long
Cont = cWithItem(Int(DEV1_VL1))
iPos = iPosInCont(Int(DEV1_VL1), Cont)
DEV1_VL2 = "BP" & Cont & " SLOT" & iPos
End Sub