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

📄 frmerrors.frm

📁 都是基于VB所做的程序集合,值得大家作为实践的参考资料.
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmErrors 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "采样点误差"
   ClientHeight    =   2700
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5190
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2700
   ScaleWidth      =   5190
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdCancel 
      Caption         =   "放弃配准"
      Height          =   390
      Left            =   3900
      TabIndex        =   2
      Top             =   2250
      Width           =   1140
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "继续配准"
      Height          =   390
      Left            =   2625
      TabIndex        =   1
      Top             =   2250
      Width           =   1140
   End
   Begin MSComctlLib.ListView ListView1 
      Height          =   2190
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   5190
      _ExtentX        =   9155
      _ExtentY        =   3863
      View            =   3
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      FullRowSelect   =   -1  'True
      _Version        =   393217
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   4
      BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Text            =   "配准点"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   2
         SubItemIndex    =   1
         Text            =   "X差值"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   2
         SubItemIndex    =   2
         Text            =   "Y差值"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   2
         SubItemIndex    =   3
         Text            =   "均方差"
         Object.Width           =   2540
      EndProperty
   End
   Begin VB.Label lblTotalRMS 
      Caption         =   "Label1"
      Height          =   390
      Left            =   0
      TabIndex        =   3
      Top             =   2250
      Width           =   2490
   End
End
Attribute VB_Name = "frmErrors"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim continue As Boolean
Public Function registerContinue(objerrors As soTransformErrors) As Boolean
    Me.ListView1.ColumnHeaders(1).Width = 800
    Dim i As Integer
    For i = 1 To objerrors.Count
        ListView1.ListItems.Add , , "P" & Str(i)
        ListView1.ListItems(ListView1.ListItems.Count).SubItems(1) = Str(objerrors.ResidualX(i))
        ListView1.ListItems(ListView1.ListItems.Count).SubItems(2) = Str(objerrors.ResidualY(i))
        ListView1.ListItems(ListView1.ListItems.Count).SubItems(3) = Str(objerrors.RMS(i))
    Next
    lblTotalRMS.Caption = "总误差:" & Str(objerrors.TotalRMS)
    Me.Show vbModal
    
    If continue = True Then
        registerContinue = True
    Else
        registerContinue = False
    End If
End Function

Private Sub cmdCancel_Click()
    continue = False
    Unload Me
End Sub

Private Sub cmdOK_Click()
    continue = True
    Unload Me
End Sub

⌨️ 快捷键说明

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