📄 msgcomposer.frm
字号:
VERSION 5.00
Begin VB.Form MsgComposer
BorderStyle = 4 'Fixed ToolWindow
Caption = " Message Composer"
ClientHeight = 4770
ClientLeft = 45
ClientTop = 315
ClientWidth = 5670
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4770
ScaleWidth = 5670
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.Frame FrmButtons
Height = 1455
Left = 600
TabIndex = 13
Top = 1680
Width = 3735
Begin VB.OptionButton OptButtons
Caption = "Abort, Retry, Ignore"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 5
Left = 1680
TabIndex = 19
Tag = "2"
Top = 960
Width = 1815
End
Begin VB.OptionButton OptButtons
Caption = "Retry, Cancel"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 4
Left = 240
TabIndex = 18
Tag = "5"
Top = 960
Width = 1695
End
Begin VB.OptionButton OptButtons
Caption = "Yes, No, Cancel"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 3
Left = 1680
TabIndex = 17
Tag = "3"
Top = 600
Width = 1575
End
Begin VB.OptionButton OptButtons
Caption = "Yes, No"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 2
Left = 1680
TabIndex = 16
Tag = "4"
Top = 240
Width = 1095
End
Begin VB.OptionButton OptButtons
Caption = "Ok, Cancel"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 1
Left = 240
TabIndex = 15
Tag = "1"
Top = 600
Width = 1095
End
Begin VB.OptionButton OptButtons
Caption = "Ok Only"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Index = 0
Left = 240
TabIndex = 14
Tag = "0"
Top = 240
Value = -1 'True
Width = 1335
End
End
Begin VB.CommandButton CmdSend
Caption = "Send Message"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Left = 4200
TabIndex = 11
Top = 4080
Width = 1335
End
Begin VB.CommandButton CmdTest
Caption = "Test Message"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Left = 4200
TabIndex = 10
Top = 3480
Width = 1335
End
Begin VB.TextBox TxtMsgTxt
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 320
Left = 480
TabIndex = 9
Text = "I own your computer."
Top = 4200
Width = 3495
End
Begin VB.TextBox TxtMsgTitle
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 480
TabIndex = 7
Text = "Hello..."
Top = 3480
Width = 3495
End
Begin VB.OptionButton OptIcon
Caption = "Question"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Index = 4
Left = 4560
Picture = "MsgComposer.frx":0000
Style = 1 'Graphical
TabIndex = 5
Tag = "32"
Top = 360
Width = 975
End
Begin VB.OptionButton OptIcon
Caption = "Error"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Index = 3
Left = 3480
Picture = "MsgComposer.frx":0ECA
Style = 1 'Graphical
TabIndex = 4
Tag = "16"
Top = 360
Width = 975
End
Begin VB.OptionButton OptIcon
Caption = "Info"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Index = 2
Left = 2400
Picture = "MsgComposer.frx":1D94
Style = 1 'Graphical
TabIndex = 3
Tag = "64"
Top = 360
Width = 975
End
Begin VB.OptionButton OptIcon
Caption = "Warning"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Index = 1
Left = 1320
Picture = "MsgComposer.frx":2C5E
Style = 1 'Graphical
TabIndex = 2
Tag = "48"
Top = 360
Width = 975
End
Begin VB.OptionButton OptIcon
Caption = "None"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Index = 0
Left = 240
Style = 1 'Graphical
TabIndex = 1
Tag = "0"
Top = 360
Value = -1 'True
Width = 975
End
Begin VB.Label LblButtons
AutoSize = -1 'True
Caption = "Message Buttons:"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 120
TabIndex = 12
Top = 1440
Width = 1500
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Message Text:"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 120
TabIndex = 8
Top = 3960
Width = 1230
End
Begin VB.Label LblTitle
AutoSize = -1 'True
Caption = "Message Title:"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 120
TabIndex = 6
Top = 3240
Width = 1215
End
Begin VB.Label LblIcon
AutoSize = -1 'True
Caption = "Icon:"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 120
TabIndex = 0
Top = 120
Width = 420
End
End
Attribute VB_Name = "MsgComposer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim X1 As Integer, X2 As Integer
Private Sub CmdSend_Click()
StoreStyle
Dim ReX As String
ReX = CStr("MsgComposer" & "|" & TxtMsgTxt & "$" & CInt(OptButtons(X1).Tag) & "#" & CInt(OptIcon(X2).Tag) & "^" & TxtMsgTitle)
WinSock.SendData ReX
Client.LblResult = SeCo
End Sub
Private Sub CmdTest_Click()
StoreStyle
MsgBox TxtMsgTxt, CInt(OptButtons(X1).Tag) + CInt(OptIcon(X2).Tag), TxtMsgTitle
End Sub
Public Function StoreStyle()
For X1 = 0 To 5
If OptButtons(X1).Value = True Then Exit For
Next X1
For X2 = 0 To 4
If OptIcon(X2).Value = True Then Exit For
Next X2
End Function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -