?? form4.frm
字號:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form4
BorderStyle = 3 'Fixed Dialog
Caption = "顏色設置"
ClientHeight = 1545
ClientLeft = 45
ClientTop = 330
ClientWidth = 4605
Icon = "Form4.frx":0000
LinkTopic = "Form4"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1545
ScaleWidth = 4605
StartUpPosition = 1 '所有者中心
Begin MSComDlg.CommonDialog Dialog1
Left = 2520
Top = 67
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Comuse
Caption = "應用"
Height = 375
Left = 3360
TabIndex = 5
Top = 120
Width = 1095
End
Begin VB.CommandButton Comclose
Caption = "關閉"
Height = 375
Left = 3360
TabIndex = 4
Top = 840
Width = 1095
End
Begin VB.CommandButton Comsetupback
Caption = ">>"
Height = 375
Left = 1680
TabIndex = 3
Top = 840
Width = 495
End
Begin VB.CommandButton Comsetupfont
Caption = ">>"
Height = 375
Left = 1680
TabIndex = 2
Top = 120
Width = 495
End
Begin VB.Shape colorb
FillStyle = 0 'Solid
Height = 495
Left = 1080
Top = 780
Width = 495
End
Begin VB.Shape colorf
FillStyle = 0 'Solid
Height = 495
Left = 1080
Top = 60
Width = 495
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "背景顏色"
Height = 180
Left = 120
TabIndex = 1
Top = 937
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "字體顏色"
Height = 180
Left = 120
TabIndex = 0
Top = 217
Width = 720
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Comclose_Click()
Unload Me
End Sub
Private Sub Comsetupback_Click()
Dialog1.CancelError = True
On Error GoTo ErrHandler
Dialog1.ShowColor
colorb.FillColor = Dialog1.Color
Comuse.Enabled = True
ErrHandler:
Exit Sub
End Sub
Private Sub Comsetupfont_Click()
Dialog1.CancelError = True
On Error GoTo ErrHandler
Dialog1.ShowColor
colorf.FillColor = Dialog1.Color
Comuse.Enabled = True
ErrHandler:
Exit Sub
End Sub
Private Sub Comuse_Click()
Form1.Text1.ForeColor = colorf.FillColor
Form1.Text1.BackColor = colorb.FillColor
Comuse.Enabled = False
End Sub
Private Sub Form_Load()
colorf.FillColor = Form1.Text1.ForeColor
colorb.FillColor = Form1.Text1.BackColor
Comuse.Enabled = False
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -