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

📄 frmmain.frm

📁 自行开发 水准网平差程序
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FrmMain 
   Caption         =   "水准网平差软件"
   ClientHeight    =   8310
   ClientLeft      =   165
   ClientTop       =   735
   ClientWidth     =   9420
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   10.5
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "FrmMain.frx":0000
   ScaleHeight     =   9632.195
   ScaleMode       =   0  'User
   ScaleWidth      =   9420
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   405
      Left            =   0
      TabIndex        =   2
      Top             =   0
      Width           =   9420
      _ExtentX        =   16616
      _ExtentY        =   714
      ButtonWidth     =   609
      ButtonHeight    =   556
      Appearance      =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   8
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "New"
            Object.ToolTipText     =   "新项目"
            ImageIndex      =   1
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Open"
            Object.ToolTipText     =   "打开项目"
            ImageIndex      =   2
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "SaveAs"
            Object.ToolTipText     =   "另存为"
            ImageIndex      =   3
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Close"
            Object.ToolTipText     =   "关闭"
            ImageIndex      =   4
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Exit"
            Object.ToolTipText     =   "退出"
            ImageIndex      =   5
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Calculate"
            Object.ToolTipText     =   "平差计算"
            ImageIndex      =   6
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "View"
            Object.ToolTipText     =   "查看平差结果"
            ImageIndex      =   7
         EndProperty
         BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Print"
            Object.ToolTipText     =   "打印平差结果"
            ImageIndex      =   8
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   240
      Top             =   960
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   15
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   8
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":030A
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":041E
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":053E
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":0652
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":0766
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":087A
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":098E
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "FrmMain.frx":0AA2
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   0
      Top             =   7935
      Width           =   9420
      _ExtentX        =   16616
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   2
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   3528
            MinWidth        =   3528
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   3528
            MinWidth        =   3528
         EndProperty
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   240
      Top             =   2040
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Label Label3 
      Caption         =   "水准网平差软件1.0版"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   5160
      TabIndex        =   3
      Top             =   1440
      Width           =   4935
   End
   Begin VB.Label Label1 
      Caption         =   "南京河海大学测量工程系 兰孝奇"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   26.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   4080
      TabIndex        =   1
      Top             =   9000
      Width           =   9540
   End
   Begin VB.Menu MnuProject 
      Caption         =   "项目(&P)"
      Begin VB.Menu MnuNewProject 
         Caption         =   "新项目"
         Shortcut        =   ^N
      End
      Begin VB.Menu MnuOpenProject 
         Caption         =   "打开项目"
         Shortcut        =   ^O
      End
      Begin VB.Menu Sep1 
         Caption         =   "-"
      End
      Begin VB.Menu MnuSaveProjectAs 
         Caption         =   "另保存为"
      End
      Begin VB.Menu MnuCloseProject 
         Caption         =   "关闭"
      End
      Begin VB.Menu Sep2 
         Caption         =   "-"
      End
      Begin VB.Menu MnuLastProject 
         Caption         =   "最近打开项目"
      End
      Begin VB.Menu spt3 
         Caption         =   "-"
      End
      Begin VB.Menu MnuExitProject 
         Caption         =   "退出"
         Shortcut        =   ^E
      End
   End
   Begin VB.Menu MnuDataInput 
      Caption         =   "数据(&D)"
      Begin VB.Menu MnuObsData 
         Caption         =   "观测数据"
      End
   End
   Begin VB.Menu MnuCalculate 
      Caption         =   "计算(&C)"
      Begin VB.Menu MnuAdjustCal 
         Caption         =   "平差计算"
      End
   End
   Begin VB.Menu MnuView 
      Caption         =   "查看(&V)"
      Begin VB.Menu MnuViewObsData 
         Caption         =   "查看观测数据"
      End
      Begin VB.Menu MnuViewResult 
         Caption         =   "查看计算结果"
      End
   End
   Begin VB.Menu MnuReport 
      Caption         =   "报表(&R)"
      Begin VB.Menu MenuReportPrn 
         Caption         =   "报表打印"
      End
   End
   Begin VB.Menu mnuHelp 
      Caption         =   "帮助(&H)"
      Begin VB.Menu mnuHelpTopics 
         Caption         =   "帮助主题"
      End
      Begin VB.Menu mnuHelpAbout 
         Caption         =   "关于水准网平差软件"
      End
   End
   Begin VB.Menu mnuRightMain 
      Caption         =   "mnuRight"
      Visible         =   0   'False
      Begin VB.Menu mnuRight 
         Caption         =   "显示基本信息"
         Index           =   1
      End
      Begin VB.Menu mnuRight 
         Caption         =   "显示其它信息"
         Index           =   2
      End
   End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Initialize()
    MnuSaveProjectAs.Enabled = False
    MnuCloseProject.Enabled = False
    MnuObsData.Enabled = False
    MnuAdjustCal.Enabled = False
    MnuViewObsData.Enabled = False
    MnuViewResult.Enabled = False
    MenuReportPrn.Enabled = False
End Sub

Private Sub Form_Load()
Dim ReturnLength As Long, i As Long
     Me.Left = (Screen.Width - Me.Width) / 2
     Me.Top = (Screen.Height - Me.Height) / 2
     FrmMain.MnuLastProject.Caption = GetSetting(App.EXEName, "Startup", "Backup")
     FrmMain.MnuLastProject.Enabled = True
     If FrmMain.MnuLastProject.Caption = "" Then
          FrmMain.MnuLastProject.Caption = "最新项目"
          FrmMain.MnuLastProject.Enabled = False
     End If
End Sub


Private Sub MenuReportPrn_Click()
    If g_ProjectFile = "" Then
        MsgBox "项目没有打开。", , "提示信息!"
        Exit Sub
    End If
    If g_Info1 = 0 Then
        MsgBox "必须先输入观测数据!", , "信息提示!"
        Exit Sub
    End If
    If g_Info2 = 0 Then
        MsgBox "必须先进行平差计算!", , "信息提示!"
       Exit Sub
    End If

⌨️ 快捷键说明

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