?? frmmain.frm
字號:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmMain
BorderStyle = 0 'None
Caption = "手寫字體識別軟件 (v 2.01 beta)"
ClientHeight = 6570
ClientLeft = 150
ClientTop = 435
ClientWidth = 8730
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MouseIcon = "frmMain.frx":0442
ScaleHeight = 6570
ScaleWidth = 8730
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox comboRecognise
Height = 315
Left = 3120
TabIndex = 25
Text = "找到很少匹配字符 ..."
Top = 3840
Width = 2535
End
Begin MSComctlLib.ProgressBar pbRecognising
Height = 255
Left = 3120
TabIndex = 24
Top = 1320
Width = 2535
_ExtentX = 4471
_ExtentY = 450
_Version = 393216
Appearance = 1
End
Begin VB.ComboBox comboOpen
Height = 315
ItemData = "frmMain.frx":074C
Left = 6000
List = "frmMain.frx":074E
TabIndex = 23
Text = "選擇一個打開的字符 ..."
Top = 3840
Width = 2535
End
Begin VB.Frame Status
Caption = "狀態 - 提示和幫助窗口"
Height = 1095
Left = 120
TabIndex = 19
Top = 4920
Width = 5775
Begin VB.Label StatusLabel
BackColor = &H8000000C&
BorderStyle = 1 'Fixed Single
Height = 735
Left = 120
TabIndex = 20
Top = 240
Width = 5535
End
End
Begin VB.CommandButton TeachCancel
Caption = "取消(&C)"
Height = 375
Left = 3480
TabIndex = 14
Top = 4530
Width = 1455
End
Begin VB.CommandButton TeachConfirm
Caption = "確認"
Height = 375
Left = 3480
TabIndex = 13
Top = 4170
Width = 1455
End
Begin VB.TextBox TeachText
Height = 315
Left = 2640
TabIndex = 11
Top = 4170
Width = 495
End
Begin MSComDlg.CommonDialog Teach_CommonDialog
Left = 5520
Top = 4680
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin MSComDlg.CommonDialog Open_CommonDialog
Left = 5520
Top = 4200
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Open
Caption = "打開(&O)"
Height = 375
Left = 6120
TabIndex = 10
Top = 4200
Width = 2535
End
Begin VB.CommandButton Teach
Caption = "學習(&T)"
Height = 375
Left = 6120
TabIndex = 9
Top = 4680
Width = 2535
End
Begin VB.CommandButton Recognise
Caption = "識別(&R)"
Height = 375
Left = 6120
TabIndex = 8
Top = 5160
Width = 2535
End
Begin VB.CommandButton ClearScreen
Caption = "清除屏幕(&C)"
Height = 375
Left = 6120
TabIndex = 7
Top = 5640
Width = 2535
End
Begin VB.CommandButton Exit
BackColor = &H80000012&
Caption = "退出(&E)"
Height = 375
Left = 6120
TabIndex = 6
Top = 6120
Width = 2535
End
Begin VB.Frame Description
Caption = "描述"
Height = 615
Left = 120
TabIndex = 3
Top = 120
Width = 8535
Begin VB.Label Label3
Caption = "歡迎光臨枕善居 http://mndsoft.com"
Height = 255
Left = 2880
TabIndex = 21
Top = 240
Width = 3135
End
Begin VB.Label Label2
Caption = "-= 手寫字體識別軟件 =-"
Height = 255
Left = 240
TabIndex = 5
Top = 240
Width = 2295
End
Begin VB.Label Label1
Caption = "作者: Albert Archwamety"
Height = 255
Left = 6120
MousePointer = 2 'Cross
TabIndex = 4
Top = 240
Width = 2175
End
End
Begin VB.PictureBox picboxDrawArea
Appearance = 0 'Flat
BackColor = &H80000005&
DrawWidth = 100
FillStyle = 0 'Solid
FontTransparent = 0 'False
ForeColor = &H80000008&
Height = 2535
Left = 240
MouseIcon = "frmMain.frx":0750
MousePointer = 99 'Custom
ScaleHeight = 2505
ScaleWidth = 2505
TabIndex = 2
ToolTipText = "請在此手寫字符"
Top = 1320
Width = 2535
End
Begin VB.PictureBox picboxDatabaseArea
BackColor = &H80000005&
Height = 2535
Left = 3120
ScaleHeight = 2475
ScaleWidth = 2475
TabIndex = 1
Top = 1320
Width = 2535
End
Begin VB.PictureBox picboxDataArea
BackColor = &H80000005&
Height = 2535
Left = 6000
ScaleHeight = 2475
ScaleWidth = 2475
TabIndex = 0
Top = 1320
Width = 2535
End
Begin VB.Frame frameArea1
Caption = "手寫區域"
Height = 3015
Left = 120
TabIndex = 16
Top = 960
Width = 2775
End
Begin VB.Frame frameArea2
Caption = "數據識別區"
Height = 3015
Left = 3000
TabIndex = 17
Top = 960
Width = 2775
End
Begin VB.Frame frameArea3
Caption = "數據緩沖區"
Height = 3015
Left = 5880
TabIndex = 18
Top = 960
Width = 2775
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 195
Left = 5040
TabIndex = 22
Top = 6240
Visible = 0 'False
Width = 255
End
Begin VB.Label TeachLabelText
Caption = "請輸入需要學習的文字"
Height = 660
Left = 360
TabIndex = 12
Top = 4215
Width = 4815
End
Begin VB.Label ResultLabel
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 225
Left = 120
TabIndex = 15
Top = 6195
Width = 5895
End
Begin VB.Menu mnuPopUp
Caption = "mnuPopUp"
Visible = 0 'False
Begin VB.Menu mnuPopUp_About
Caption = "&About"
End
Begin VB.Menu mnuPopUp_Close
Caption = "&Close"
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Main_TeachText As String
Dim strCaption As String
Dim RECOG_EXT As String
Dim DrawNow As Boolean
Dim c As Integer
Dim strData As String
Dim strRECpk As String
Dim arrRawData(100 * 100) As String
Dim arrTagData(100 * 100) As String
Private Sub ClearScreen_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.StatusLabel.Caption = StatusWindow("ClearScreenButton")
End Sub
Private Sub comboOpen_Click()
' Me.comboOpen.Visible = False
c = Me.comboOpen.ListIndex
a = 190
b = 190
c = c + 1
d = 0
Me.picboxDataArea.Cls
strData = ""
If c > 0 Then
For i = 1 To 10
For j = 1 To 10
If Mid(arrRawData(c - 1), d + 1, 1) = vbBlack Then
strData = strData & vbBlack
' picboxDataArea.PSet (i, j)
picboxDataArea.PSet (a, b)
' picboxDataArea.Circle (a, b), 110
picboxDataArea.Line (a - 110, b - 110)-(a + 110, b - 110)
picboxDataArea.Line (a + 110, b - 110)-(a + 110, b + 110)
picboxDataArea.Line (a + 110, b + 110)-(a - 110, b + 110)
picboxDataArea.Line (a - 110, b + 110)-(a - 110, b - 110)
Debug.Print ""
Else
strData = strData & 1
End If
d = d + 1
b = b + (Me.picboxDataArea.Height - 200) / 10
Next j
b = 190
a = a + (Me.picboxDataArea.Width - 200) / 10
Next i
End If
Me.Open.Caption = "刪除(&D)"
Me.Open.Enabled = True
End Sub
Private Sub Exit_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.StatusLabel.Caption = StatusWindow("ExitButton")
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.StatusLabel.Caption = StatusWindow("Form")
End Sub
Private Sub Form_Paint()
Dim a As Integer
Dim b As Integer
Dim d As Integer
a = 190
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -