⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmprint.frm

📁 一个交通专用的gis-T系统
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmPrint 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "打印"
   ClientHeight    =   1845
   ClientLeft      =   6390
   ClientTop       =   5985
   ClientWidth     =   3870
   Icon            =   "frmPrint.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1845
   ScaleWidth      =   3870
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdPrintSetup 
      Caption         =   "打印设置(&S)"
      Height          =   375
      Left            =   120
      TabIndex        =   6
      Top             =   1440
      Width           =   1215
   End
   Begin VB.Frame Frame2 
      Caption         =   "打印数量"
      Height          =   1215
      Left            =   2400
      TabIndex        =   3
      Top             =   120
      Width           =   1455
      Begin MSComCtl2.UpDown udnCopies 
         Height          =   270
         Left            =   855
         TabIndex        =   5
         Top             =   480
         Width           =   240
         _ExtentX        =   423
         _ExtentY        =   476
         _Version        =   393216
         Value           =   1
         AutoBuddy       =   -1  'True
         BuddyControl    =   "txtCopies"
         BuddyDispid     =   196611
         OrigLeft        =   1680
         OrigTop         =   840
         OrigRight       =   1920
         OrigBottom      =   1215
         Max             =   100
         Min             =   1
         SyncBuddy       =   -1  'True
         BuddyProperty   =   65547
         Enabled         =   -1  'True
      End
      Begin VB.TextBox txtCopies 
         Height          =   270
         Left            =   360
         TabIndex        =   4
         Text            =   "1"
         Top             =   480
         Width           =   735
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "打印尺寸"
      Height          =   1215
      Left            =   0
      TabIndex        =   0
      Top             =   120
      Width           =   2295
      Begin VB.OptionButton optZoom 
         Caption         =   "根据纸型自动缩放"
         Height          =   375
         Index           =   1
         Left            =   240
         TabIndex        =   2
         Top             =   720
         Width           =   1815
      End
      Begin VB.OptionButton optZoom 
         Caption         =   "保持窗口大小不变"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   1
         Top             =   360
         Value           =   -1  'True
         Width           =   1935
      End
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消(&C)"
      CausesValidation=   0   'False
      Height          =   375
      Left            =   2640
      TabIndex        =   8
      Top             =   1440
      Width           =   1095
   End
   Begin VB.CommandButton cmdPrint 
      Caption         =   "打印(&P)"
      Default         =   -1  'True
      Height          =   375
      Left            =   1560
      TabIndex        =   7
      Top             =   1440
      Width           =   1095
   End
End
Attribute VB_Name = "frmPrint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*********************************************************************
'*
'*                本源码完全免费,共交通同仁学习参考                 *
'*                      www.tranbbs.com                              *
'*                   Developed by Yang Ming                          *
'*       Nanjing Institute of City Transportation Planning           *
'*                 请保留本版权信息,谢谢合作                        *
'*                      中国交通技术论坛                             *
'*                                                                   *
'*                                                                   *
'*********************************************************************
Option Explicit
Public bPrintMainMap As Boolean 'True if print main map , or false if print theme map
Private Sub Cmdcancel_Click()
    Unload Me
End Sub

Private Sub cmdPrint_Click()
    
    Me.Hide

    PrintMap Main, optZoom(0), udnCopies.Value

    Unload Me
End Sub

Private Sub cmdPrintSetup_Click()
   Main.mnuprintsetup_Click
End Sub

Private Sub txtCopies_Validate(Cancel As Boolean)
Dim i As Long
Cancel = False
txtCopies = Int(Val(txtCopies))

i = Int(Val(txtCopies))
If i = 0 Then
    txtCopies = udnCopies.Min
ElseIf i < udnCopies.Min Then
    txtCopies = udnCopies.Min
ElseIf i > udnCopies.Max Then
    txtCopies = udnCopies.Max
End If

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -