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

📄 frmspeedinput.frm

📁 一个不错的数控源码是vb的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmSpeedInput 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "对话框标题"
   ClientHeight    =   3195
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   6030
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3195
   ScaleWidth      =   6030
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.ComboBox CombSpeed 
      Height          =   300
      Index           =   2
      Left            =   2760
      TabIndex        =   11
      Text            =   "Combo1"
      Top             =   2520
      Width           =   1815
   End
   Begin VB.ComboBox CombSpeed 
      Height          =   300
      Index           =   1
      Left            =   2760
      TabIndex        =   10
      Text            =   "Combo1"
      Top             =   2040
      Width           =   1815
   End
   Begin VB.ComboBox CombSpeed 
      Height          =   300
      Index           =   0
      Left            =   2760
      TabIndex        =   9
      Text            =   "Combo1"
      Top             =   1560
      Width           =   1815
   End
   Begin VB.CommandButton CancelButton 
      Caption         =   "取消"
      Height          =   375
      Left            =   4680
      TabIndex        =   1
      Top             =   720
      Width           =   1215
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定"
      Height          =   375
      Left            =   4680
      TabIndex        =   0
      Top             =   120
      Width           =   1215
   End
   Begin VB.Label lblParam 
      Caption         =   "Label1"
      Height          =   375
      Left            =   240
      TabIndex        =   12
      Top             =   2520
      Visible         =   0   'False
      Width           =   615
   End
   Begin VB.Label Label8 
      AutoSize        =   -1  'True
      Caption         =   "矢量加速度"
      Height          =   180
      Left            =   1080
      TabIndex        =   8
      Top             =   2640
      Width           =   900
   End
   Begin VB.Label Label7 
      AutoSize        =   -1  'True
      Caption         =   "最高矢量速度"
      Height          =   180
      Left            =   1080
      TabIndex        =   7
      Top             =   2160
      Width           =   1080
   End
   Begin VB.Label Label6 
      AutoSize        =   -1  'True
      Caption         =   "最低矢量速度"
      Height          =   180
      Left            =   1080
      TabIndex        =   6
      Top             =   1680
      Width           =   1080
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      Caption         =   "内采用:"
      Height          =   180
      Left            =   3600
      TabIndex        =   5
      Top             =   1080
      Width           =   630
   End
   Begin VB.Label LblRegion 
      AutoSize        =   -1  'True
      Caption         =   "Label4"
      Height          =   180
      Left            =   1320
      TabIndex        =   4
      Top             =   1080
      Width           =   540
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "在距离"
      Height          =   180
      Left            =   360
      TabIndex        =   3
      Top             =   1080
      Width           =   540
   End
   Begin VB.Label LblUse 
      AutoSize        =   -1  'True
      Caption         =   "Label2"
      Height          =   180
      Left            =   1320
      TabIndex        =   2
      Top             =   480
      Width           =   540
   End
End
Attribute VB_Name = "frmSpeedInput"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub OKButton_Click()

    Dim i As Long
    Dim j As Long
    Dim temp As String
    
    i = CLng(Val(lblParam.Caption))
    temp = LblUse.Caption
    
    For j = 0 To 2
        Select Case temp
            Case "切直线"
                CutLineSpeed(i, j) = CLng(CombSpeed(0).Text)
            Case "切弧线"
                CutArcSpeed(i, j) = CLng(CombSpeed(0).Text)
            Case "洗直线"
                WashLineSpeed(i, j) = CLng(CombSpeed(0).Text)
            Case "洗弧线"
                WashLineSpeed(i, j) = CLng(CombSpeed(0).Text)
            Case "寻点"
                FindPointSpeed(i, j) = CLng(CombSpeed(0).Text)
            Case "提放刀"
                UpdownMoveSpeed(i, j) = CLng(CombSpeed(0).Text)
        End Select
    Next j
    
End Sub

⌨️ 快捷键说明

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