📄 print_frm.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form print_frm
BackColor = &H00808080&
Caption = "打印管理器"
ClientHeight = 8025
ClientLeft = 165
ClientTop = 780
ClientWidth = 11880
Icon = "print_frm.frx":0000
LinkTopic = "Form1"
ScaleHeight = 141.552
ScaleMode = 6 'Millimeter
ScaleWidth = 209.55
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin MSComctlLib.ImageList ImageList1
Left = 7452
Top = 396
_ExtentX = 794
_ExtentY = 794
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 5
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "print_frm.frx":030A
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "print_frm.frx":075E
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "print_frm.frx":0A7A
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "print_frm.frx":0D9A
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "print_frm.frx":10B6
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 672
Left = 0
TabIndex = 0
Top = 0
Width = 11880
_ExtentX = 20955
_ExtentY = 1191
ButtonWidth = 1418
ButtonHeight = 1143
AllowCustomize = 0 'False
Appearance = 1
Style = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 8
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "页面设置"
Key = "ymsz"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "打印"
Key = "dy"
ImageIndex = 5
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "第一页"
Key = "dyy"
ImageIndex = 2
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "下一页"
Key = "xyy"
ImageIndex = 4
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出"
Key = "tc"
ImageIndex = 3
Object.Width = 1000
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 4
Object.Width = 8000
EndProperty
EndProperty
Begin VB.ComboBox Combo1
Height = 276
ItemData = "print_frm.frx":13D6
Left = 4524
List = "print_frm.frx":13EC
Style = 2 'Dropdown List
TabIndex = 1
Top = 168
Width = 3732
End
End
Begin VB.VScrollBar VScroll1
Height = 2208
LargeChange = 16
Left = 1020
SmallChange = 8
TabIndex = 4
Top = 1788
Width = 283
End
Begin VB.HScrollBar HScroll1
Height = 283
LargeChange = 16
Left = 624
SmallChange = 8
TabIndex = 3
Top = 4488
Width = 2438
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 16838
Left = 1710
MouseIcon = "print_frm.frx":1411
MousePointer = 99 'Custom
ScaleHeight = 296.598
ScaleMode = 6 'Millimeter
ScaleWidth = 209.55
TabIndex = 2
Top = -7632
Width = 11906
Begin VB.Label bt_label
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "bt_label"
Height = 180
Index = 0
Left = 816
TabIndex = 11
Top = 9672
Visible = 0 'False
Width = 768
End
Begin VB.Label page_Label
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "page_Label"
Height = 180
Left = 2556
TabIndex = 10
Top = 10596
Width = 960
End
Begin VB.Label time_label
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "time_label"
Height = 180
Left = 2448
TabIndex = 9
Top = 10200
Width = 960
End
Begin VB.Label date_label
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "date_label"
Height = 180
Left = 2430
TabIndex = 8
Top = 9780
Width = 900
End
Begin VB.Label tail_label
AutoSize = -1 'True
BackStyle = 0 'Transparent
Height = 180
Left = 1050
TabIndex = 7
Top = 10215
Width = 90
End
Begin VB.Line s_Line
Index = 0
X1 = 13.547
X2 = 13.547
Y1 = 194.945
Y2 = 220.557
End
Begin VB.Line h_line
Index = 0
X1 = 10.16
X2 = 37.465
Y1 = 189.865
Y2 = 189.865
End
Begin VB.Label title_label
AutoSize = -1 'True
BackStyle = 0 'Transparent
Height = 180
Left = 1350
TabIndex = 6
Top = 9480
Width = 90
End
Begin VB.Label zw_label
AutoSize = -1 'True
BackStyle = 0 'Transparent
Height = 180
Index = 0
Left = 1275
TabIndex = 5
Top = 9885
Visible = 0 'False
Width = 90
End
End
Begin MSComDlg.CommonDialog cd
Left = 6648
Top = 264
_ExtentX = 688
_ExtentY = 688
_Version = 393216
End
Begin VB.Menu cz
Caption = "操作(&F)"
Begin VB.Menu ylfd
Caption = "预览放大(&Y)"
Begin VB.Menu y
Caption = "200%"
Index = 0
End
Begin VB.Menu y
Caption = "150%"
Index = 1
End
Begin VB.Menu y
Caption = "100%"
Checked = -1 'True
Index = 2
End
Begin VB.Menu y
Caption = "75%"
Index = 3
End
Begin VB.Menu y
Caption = "50%"
Index = 4
End
Begin VB.Menu y
Caption = "25%"
Index = 5
End
End
Begin VB.Menu ymsz
Caption = "页面设置(&M)..."
End
Begin VB.Menu zzys
Caption = "纸张颜色(&C)"
End
Begin VB.Menu bar1
Caption = "-"
End
Begin VB.Menu dysz
Caption = "打印设置...(&T)"
End
Begin VB.Menu lxdy
Caption = "连续打印(&L)"
End
Begin VB.Menu dy
Caption = "打印(&P)"
End
Begin VB.Menu bar2
Caption = "-"
End
Begin VB.Menu tc
Caption = "退出(&E)"
End
End
Begin VB.Menu fy
Caption = "翻阅(&J)"
Begin VB.Menu dyy
Caption = "第一页(&F)"
End
Begin VB.Menu xyy
Caption = "下一页(&N)"
End
End
Begin VB.Menu bz
Caption = "帮助(&H)"
Begin VB.Menu ztbz
Caption = "主题帮助(&H)"
Shortcut = {F1}
End
Begin VB.Menu about
Caption = "关于 打印管理器(&A)"
End
End
End
Attribute VB_Name = "print_frm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub about_Click()
MsgBox "『打印管理器』 2.0 版" + Chr(13) + " FOR WINDOWS 9X/NT/2KY" + Chr(13) + " 作者:蒋国清" + Chr(13) + Chr(13) + "版权所有(C)1999-2000:蒋国清(95960-135116)" + Chr(13) + "上海奇迹科技发展有限公司", vbOKOnly, about.Caption
End Sub
Private Sub bt_label_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, y As Single)
Picture1_MouseUp Button, Shift, X, y
End Sub
Private Sub Combo1_Click()
y_Click Combo1.ListIndex
End Sub
Private Sub date_label_MouseUp(Button As Integer, Shift As Integer, X As Single, y As Single)
Picture1_MouseUp Button, Shift, X, y
End Sub
Private Sub dy_Click()
On Error GoTo myerr
Combo1.ListIndex = 2
Printer.ScaleMode = 6 '设为毫米模式
If grid_print = "True" Then
For i = 0 To h_line.Count - 1
Printer.DrawWidth = h_line(i).BorderWidth
Printer.Line (h_line(i).X1, h_line(i).Y1)-(h_line(i).X2, h_line(i).Y2), Val(color_bg)
Next i
For i = 0 To s_Line.Count - 1
Printer.DrawWidth = s_Line(i).BorderWidth
Printer.Line (s_Line(i).X1, s_Line(i).Y1)-(s_Line(i).X2, s_Line(i).Y2), Val(color_bg)
Next i
End If
If ymyw_yw_print = "1" Then
Printer.CurrentX = tail_label.Left
Printer.CurrentY = tail_label.Top
Printer.FontSize = tail_label.FontSize
Printer.FontBold = tail_label.FontBold
Printer.FontItalic = tail_label.FontItalic
Printer.FontUnderline = tail_label.FontItalic
Printer.ForeColor = tail_label.ForeColor
Printer.FontName = tail_label.FontName
Printer.Print tail_label.Caption
End If
If ymyw_date = "1" Then
Printer.CurrentX = date_label.Left
Printer.CurrentY = date_label.Top
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -