📄 frmfonts.frm
字号:
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 1
Left = 4320
TabIndex = 24
Top = 840
Width = 2415
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "主窗体字体"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 0
Left = 720
TabIndex = 23
Top = 840
Width = 1815
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "状态颜色:"
ForeColor = &H00800000&
Height = 255
Index = 9
Left = 4320
TabIndex = 21
Top = 3600
Width = 1335
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "在线用户颜色:"
ForeColor = &H00800000&
Height = 255
Index = 8
Left = 4320
TabIndex = 19
Top = 3120
Width = 1335
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "用户列表前景色:"
ForeColor = &H00800000&
Height = 255
Index = 6
Left = 4320
TabIndex = 17
Top = 2640
Width = 1335
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "用户列表背景色:"
ForeColor = &H00800000&
Height = 255
Index = 2
Left = 4320
TabIndex = 15
Top = 2160
Width = 1335
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "信息框颜色:"
ForeColor = &H00800000&
Height = 255
Index = 1
Left = 4320
TabIndex = 13
Top = 1680
Width = 1110
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "话题颜色:"
ForeColor = &H00800000&
Height = 255
Index = 0
Left = 4320
TabIndex = 11
Top = 1200
Width = 1095
End
Begin VB.Shape Shape3
BackStyle = 1 'Opaque
BorderColor = &H00FFFFFF&
Height = 255
Left = 1080
Top = 3270
Width = 1770
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "示例:"
ForeColor = &H00008000&
Height = 255
Index = 7
Left = 720
TabIndex = 7
Top = 3000
Width = 735
End
Begin VB.Line Line2
BorderColor = &H00808080&
X1 = 71
X2 = 71
Y1 = 216
Y2 = 248
End
Begin VB.Shape Shape2
BorderColor = &H00808080&
Height = 495
Left = 720
Top = 3240
Width = 2175
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "样式:"
ForeColor = &H00008000&
Height = 255
Index = 3
Left = 720
TabIndex = 6
Top = 2400
Width = 495
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "大小:"
ForeColor = &H00008000&
Height = 255
Index = 4
Left = 720
TabIndex = 5
Top = 1800
Width = 495
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "字体:"
ForeColor = &H00008000&
Height = 255
Index = 5
Left = 720
TabIndex = 4
Top = 1200
Width = 495
End
End
Attribute VB_Name = "frmFonts"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
' :) 人人为我,我为人人 :)
'枕善居汉化收藏整理
'发布日期:05/08/03
'描 述:我的网络聊天室 (客户端)
'网 站:http://www.mndsoft.com/
'e-mail :mnd@mndsoft.com
'OICQ :88382850
'****************************************************************************
'declare constants:
Private Const HWND_TOPMOST = -1
Private Const SWP_NOSIZE = &H1
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOACTIVATE = &H10
Private Const SWP_SHOWWINDOW = &H40
'declare API:
Private Declare Sub SetWindowPos Lib "user32" (ByVal hWnd As Long, _
ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, _
ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
'Round the form
Dim rndfrm As New ROUND_FORM
'Form Object
Dim FrmObject As Form
Dim x_IsItalic As Boolean
Dim x_IsBold As Boolean
Private Sub cmdClose_Click()
Me.Hide
End Sub
Private Sub Label3_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
ReleaseCapture
SendMessage Me.hWnd, &HA1, 2, 0
Exit Sub
End If
End Sub
Private Sub MyButton1_Click()
Me.Hide
End Sub
Private Sub WindowBorder_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
ReleaseCapture
SendMessage Me.hWnd, &HA1, 2, 0
Exit Sub
End If
End Sub
Private Sub cmdmw_Click()
SET_FONT FormObjectHandle
End Sub
Private Sub Form_Load()
FillComboWithFonts cmbmwfont
'set window on top
SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or _
SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
'round form shape
rndfrm.ROUND_FORM Me, 12, 1, 1
End Sub
'For main window
Private Sub cmbmwfont_Click()
txtmwsample.Font = cmbmwfont.Text
End Sub
Private Sub cmbmwsize_Click()
txtmwsample.FontSize = cmbmwsize.Text
End Sub
Private Sub cmbmwstyle_Click()
If cmbmwstyle.Text = "Regular" Then
txtmwsample.FontBold = False
txtmwsample.FontItalic = False
x_IsBold = False
x_IsItalic = False
ElseIf cmbmwstyle.Text = "Italic" Then
txtmwsample.FontBold = False
txtmwsample.FontItalic = True
x_IsBold = False
x_IsItalic = True
ElseIf cmbmwstyle.Text = "Bold" Then
txtmwsample.FontBold = True
txtmwsample.FontItalic = False
x_IsBold = True
x_IsItalic = False
ElseIf cmbmwstyle.Text = "Bold Italic" Then
txtmwsample.FontBold = True
txtmwsample.FontItalic = True
x_IsBold = True
x_IsItalic = True
End If
End Sub
Public Function SET_FONT(frmobj As Form)
On Error Resume Next
'set main window fonts
frmobj.txtchat.SelFontName = cmbmwfont.Text
frmobj.txtchat.SelFontSize = cmbmwsize
If cmbmwstyle.Text = "Regular" Then
frmobj.txtchat.SelBold = False
frmobj.txtchat.SelItalic = False
ElseIf cmbmwstyle.Text = "Italic" Then
frmobj.txtchat.SelBold = False
frmobj.txtchat.SelItalic = True
ElseIf cmbmwstyle.Text = "Bold" Then
frmobj.txtchat.SelBold = True
frmobj.txtchat.SelItalic = False
ElseIf cmbmwstyle.Text = "Bold Italic" Then
frmobj.txtchat.SelBold = True
frmobj.txtchat.SelItalic = True
End If
frmobj.FontNameIs = cmbmwfont.Text
frmobj.IsItalic = x_IsItalic
frmobj.IsBold = x_IsBold
End Function
Public Property Get FormObjectHandle() As Form
Set FormObjectHandle = FrmObject
End Property
Public Property Let FormObjectHandle(ByVal vNewValue As Form)
Set FrmObject = vNewValue
End Property
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -