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

📄 frmprocessconfig.frm

📁 一个不错的数控源码是vb的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmProcessConfig 
   Caption         =   "加工工艺"
   ClientHeight    =   5325
   ClientLeft      =   60
   ClientTop       =   285
   ClientWidth     =   6450
   LinkTopic       =   "Form1"
   ScaleHeight     =   5325
   ScaleWidth      =   6450
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   375
      Left            =   5400
      TabIndex        =   13
      Top             =   4680
      Width           =   855
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确 定"
      Height          =   375
      Left            =   4320
      TabIndex        =   12
      Top             =   4680
      Width           =   855
   End
   Begin VB.Frame Frame3 
      Caption         =   "工具参数"
      Height          =   2055
      Left            =   600
      TabIndex        =   0
      Top             =   2280
      Width           =   5415
      Begin VB.TextBox txtStandardDepth 
         Height          =   270
         Left            =   1080
         TabIndex        =   15
         Text            =   "0"
         Top             =   1320
         Width           =   855
      End
      Begin VB.TextBox TxtStandardHigh 
         Height          =   270
         Left            =   1080
         TabIndex        =   1
         Text            =   "59"
         Top             =   840
         Width           =   855
      End
      Begin VB.TextBox TxtCutterWidth 
         Height          =   270
         Left            =   1080
         TabIndex        =   2
         Text            =   "8"
         Top             =   360
         Width           =   855
      End
      Begin VB.Label Label5 
         Caption         =   "图纸中要求的材料厚度"
         Height          =   375
         Left            =   2520
         TabIndex        =   17
         Top             =   1320
         Width           =   2295
      End
      Begin VB.Label Label4 
         Caption         =   "加工起始点到底座的垂直距离(不包含垫层)"
         Height          =   375
         Left            =   2520
         TabIndex        =   16
         Top             =   840
         Width           =   2415
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "标厚:"
         Height          =   180
         Left            =   360
         TabIndex        =   14
         Top             =   1320
         Width           =   540
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "刀宽:"
         Height          =   180
         Left            =   360
         TabIndex        =   3
         Top             =   360
         Width           =   540
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "标高:"
         Height          =   180
         Left            =   360
         TabIndex        =   4
         Top             =   840
         Width           =   540
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "加工工艺"
      Height          =   1455
      Left            =   840
      TabIndex        =   9
      Top             =   360
      Width           =   1695
      Begin VB.CheckBox ChkSwapTwoTimes 
         Caption         =   "两次扫底"
         Height          =   255
         Left            =   360
         TabIndex        =   11
         Top             =   480
         Width           =   1095
      End
      Begin VB.CheckBox ChkCutTwoTimes 
         Caption         =   "两次切透"
         Height          =   255
         Left            =   360
         TabIndex        =   10
         Top             =   840
         Width           =   1095
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "加工比例选择"
      Height          =   1815
      Left            =   3480
      TabIndex        =   5
      Top             =   360
      Width           =   2055
      Begin VB.OptionButton OptProcessFactor 
         Caption         =   "比例三"
         Height          =   255
         Index           =   2
         Left            =   600
         TabIndex        =   8
         Top             =   1320
         Width           =   855
      End
      Begin VB.OptionButton OptProcessFactor 
         Caption         =   "比例二"
         Height          =   255
         Index           =   1
         Left            =   600
         TabIndex        =   7
         Top             =   840
         Width           =   855
      End
      Begin VB.OptionButton OptProcessFactor 
         Caption         =   "比例一"
         Height          =   255
         Index           =   0
         Left            =   600
         TabIndex        =   6
         Top             =   360
         Value           =   -1  'True
         Width           =   855
      End
   End
End
Attribute VB_Name = "frmProcessConfig"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
    Unload frmProcessConfig
End Sub

Private Sub cmdOK_Click()

    GetFrmProcessConfigParam
    Unload frmProcessConfig

End Sub

Private Sub GetFrmProcessConfigParam()
    Dim i As Long
    
    cutterWidth = Val(TxtCutterWidth.Text)
    standardHigh = Val(TxtStandardHigh.Text)
    standardDepth = Val(txtStandardDepth.Text)
    cutTwoTimes = ChkCutTwoTimes.Value
    swapTwoTimes = ChkSwapTwoTimes.Value
        
    For i = 0 To 2
        If OptProcessFactor(i).Value = True Then
            processFactorSelect = i
        End If
    Next i
End Sub

Private Sub Form_Load()
    '************************************
    '根据参数设置界面
    TxtCutterWidth.Text = cutterWidth
    TxtStandardHigh.Text = standardHigh
    txtStandardDepth.Text = standardDepth
    ChkSwapTwoTimes.Value = swapTwoTimes
    ChkCutTwoTimes.Value = cutTwoTimes
    OptProcessFactor(processFactorSelect).Value = True
End Sub

Private Sub OptProcessFactor_DblClick(index As Integer)
    frmBasicConfig.Show
End Sub

⌨️ 快捷键说明

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