📄 properties.frm
字号:
VERSION 5.00
Begin VB.Form properties
BorderStyle = 1 'Fixed Single
Caption = "Properties"
ClientHeight = 5490
ClientLeft = 45
ClientTop = 330
ClientWidth = 4620
Icon = "properties.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 5490
ScaleWidth = 4620
WhatsThisButton = -1 'True
WhatsThisHelp = -1 'True
Begin VB.CommandButton Edit
BackColor = &H00E0E0E0&
Caption = "&Edit"
Height = 255
Left = 720
Style = 1 'Graphical
TabIndex = 11
Top = 5160
Width = 1095
End
Begin VB.CommandButton CANCEL
BackColor = &H00E0E0E0&
Caption = "&Cancel"
Height = 255
Left = 3360
Style = 1 'Graphical
TabIndex = 10
Top = 5160
Width = 1095
End
Begin VB.CommandButton OK_SAVE
BackColor = &H00E0E0E0&
Height = 255
Left = 2040
Style = 1 'Graphical
TabIndex = 9
Top = 5160
Width = 1095
End
Begin VB.Frame Frame2
Height = 2475
Left = 120
TabIndex = 8
Top = 2580
Width = 4335
End
Begin VB.Frame Frame1
Caption = "Main"
Height = 2415
Left = 120
TabIndex = 0
Top = 120
Width = 4335
Begin VB.TextBox Type_t
Height = 285
Left = 1740
TabIndex = 13
Top = 1620
Visible = 0 'False
Width = 2415
End
Begin VB.TextBox Name_t
Height = 255
Left = 1740
TabIndex = 12
Top = 1260
Visible = 0 'False
Width = 2415
End
Begin VB.Label label1
Caption = "Label1"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 840
TabIndex = 7
Top = 600
Width = 3315
End
Begin VB.Label Name_
BorderStyle = 1 'Fixed Single
Height = 255
Left = 1740
TabIndex = 6
Top = 1260
Width = 2415
End
Begin VB.Label Type_
BorderStyle = 1 'Fixed Single
Height = 255
Left = 1740
TabIndex = 5
Top = 1620
Width = 2415
End
Begin VB.Label Propriete
BorderStyle = 1 'Fixed Single
Height = 255
Left = 1740
TabIndex = 4
Top = 1980
Width = 2415
End
Begin VB.Image Image1
Height = 600
Left = 120
Picture = "properties.frx":0442
Stretch = -1 'True
Top = 420
Width = 540
End
Begin VB.Label label_nom
Height = 255
Left = 120
TabIndex = 3
Top = 1260
Width = 1515
End
Begin VB.Label Label_type
Height = 255
Left = 120
TabIndex = 2
Top = 1620
Width = 1515
End
Begin VB.Label label_propriete
Height = 255
Left = 120
TabIndex = 1
Top = 1980
Width = 1515
End
End
End
Attribute VB_Name = "properties"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CANCEL_Click()
Unload Me
End Sub
Private Sub CANCEL_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Edit.FontBold = False
OK_SAVE.FontBold = False
CANCEL.FontBold = True
End Sub
Private Sub Edit_Click()
OK_SAVE.Caption = "&Save"
Edit.Enabled = False
Name_t.text = Name_.Caption
Type_t.text = Type_.Caption
Name_t.Visible = True
Type_t.Visible = True
End Sub
Private Sub Edit_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Edit.FontBold = True
OK_SAVE.FontBold = False
CANCEL.FontBold = False
End Sub
Private Sub Form_Load()
fct.fctfind
OK_SAVE.Caption = "&Ok"
Edit.Enabled = True
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Edit.FontBold = False
OK_SAVE.FontBold = False
CANCEL.FontBold = False
End Sub
Private Sub OK_SAVE_Click()
Dim all
If OK_SAVE.Caption = "&Ok" Then
Unload Me
ElseIf OK_SAVE.Caption = "&Save" Then
If Name_t.text = "" Then
MsgBox "Enter string for the name"
Exit Sub
Else
fct.fctsave
properties.Refresh
End If
End If
Unload Me
On Error Resume Next
DB_explore.rebuild
'DB_explore.func_load
End Sub
Private Sub OK_SAVE_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Edit.FontBold = False
OK_SAVE.FontBold = True
CANCEL.FontBold = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -