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

📄 formfilter2.frm

📁 电动平台, 控制X,Y,Z轴移动,能计数
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FormFilter2 
   Caption         =   "Filter Wheel 2"
   ClientHeight    =   4695
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6300
   LinkTopic       =   "Form1"
   ScaleHeight     =   4695
   ScaleWidth      =   6300
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton BtnPreviouse 
      Caption         =   "Previous"
      Height          =   735
      Left            =   2160
      TabIndex        =   34
      Top             =   1320
      Width           =   1215
   End
   Begin VB.CommandButton BtnNext 
      Caption         =   "Next"
      Height          =   735
      Left            =   720
      TabIndex        =   33
      Top             =   1320
      Width           =   1215
   End
   Begin VB.CommandButton BtnHome 
      Caption         =   "Home"
      Height          =   735
      Left            =   4440
      TabIndex        =   32
      Top             =   1320
      Width           =   1215
   End
   Begin VB.CommandButton Pos 
      Caption         =   "30"
      Height          =   495
      Index           =   29
      Left            =   5640
      TabIndex        =   31
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "29"
      Height          =   495
      Index           =   28
      Left            =   5040
      TabIndex        =   30
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "28"
      Height          =   495
      Index           =   27
      Left            =   4440
      TabIndex        =   29
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "27"
      Height          =   495
      Index           =   26
      Left            =   3840
      TabIndex        =   28
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "26"
      Height          =   495
      Index           =   25
      Left            =   3240
      TabIndex        =   27
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "25"
      Height          =   495
      Index           =   24
      Left            =   2640
      TabIndex        =   26
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "24"
      Height          =   495
      Index           =   23
      Left            =   2040
      TabIndex        =   25
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "23"
      Height          =   495
      Index           =   22
      Left            =   1440
      TabIndex        =   24
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "22"
      Height          =   495
      Index           =   21
      Left            =   840
      TabIndex        =   23
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "21"
      Height          =   495
      Index           =   20
      Left            =   240
      TabIndex        =   22
      Top             =   4080
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "20"
      Height          =   495
      Index           =   19
      Left            =   5640
      TabIndex        =   21
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "19"
      Height          =   495
      Index           =   18
      Left            =   5040
      TabIndex        =   20
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "18"
      Height          =   495
      Index           =   17
      Left            =   4440
      TabIndex        =   19
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "17"
      Height          =   495
      Index           =   16
      Left            =   3840
      TabIndex        =   18
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "16"
      Height          =   495
      Index           =   15
      Left            =   3240
      TabIndex        =   17
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "15"
      Height          =   495
      Index           =   14
      Left            =   2640
      TabIndex        =   16
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "14"
      Height          =   495
      Index           =   13
      Left            =   2040
      TabIndex        =   15
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "13"
      Height          =   495
      Index           =   12
      Left            =   1440
      TabIndex        =   14
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "12"
      Height          =   495
      Index           =   11
      Left            =   840
      TabIndex        =   13
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "11"
      Height          =   495
      Index           =   10
      Left            =   240
      TabIndex        =   12
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "10"
      Height          =   495
      Index           =   9
      Left            =   5640
      TabIndex        =   11
      Top             =   2400
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "9"
      Height          =   495
      Index           =   8
      Left            =   5040
      TabIndex        =   10
      Top             =   2400
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "8"
      Height          =   495
      Index           =   7
      Left            =   4440
      TabIndex        =   9
      Top             =   2400
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "7"
      Height          =   495
      Index           =   6
      Left            =   3840
      TabIndex        =   8
      Top             =   2400
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "6"
      Height          =   495
      Index           =   5
      Left            =   3240
      TabIndex        =   7
      Top             =   2400
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "5"
      Height          =   495
      Index           =   4
      Left            =   2640
      TabIndex        =   6
      Top             =   2400
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "4"
      Height          =   495
      Index           =   3
      Left            =   2040
      TabIndex        =   5
      Top             =   2400
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "3"
      Height          =   495
      Index           =   2
      Left            =   1440
      TabIndex        =   4
      Top             =   2400
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "2"
      Height          =   495
      Index           =   1
      Left            =   840
      TabIndex        =   3
      Top             =   2400
      Width           =   495
   End
   Begin VB.CommandButton Pos 
      Caption         =   "1"
      Height          =   495
      Index           =   0
      Left            =   240
      TabIndex        =   2
      Top             =   2400
      Width           =   495
   End
   Begin VB.CheckBox CheckHomeOnStart 
      Caption         =   "Home On Start"
      Height          =   495
      Left            =   2880
      TabIndex        =   1
      Top             =   360
      Width           =   2055
   End
   Begin VB.Label LabelFilterPos 
      Caption         =   "0"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   600
      TabIndex        =   0
      Top             =   360
      Width           =   1215
   End
End
Attribute VB_Name = "FormFilter2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub BtnHome_Click()
    TestControl.myFilter.Home 2
End Sub

Private Sub BtnNext_Click()
    TestControl.myFilter.MoveToNext 2
End Sub
Private Sub BtnPreviouse_Click()
    TestControl.myFilter.MoveToPrevious 2
End Sub

Private Sub CheckHomeOnStart_Click()
    If CheckHomeOnStart.value = Checked Then
        TestControl.myFilter.HomeOnStart(2) = True
    Else
        TestControl.myFilter.HomeOnStart(2) = False
    End If
End Sub

Private Sub Form_Load()
    Dim fpw As Integer
    Dim i As Integer
    
    fpw = TestControl.myFilter.PositionsPerWheel(2)
    If fpw > 30 Then fpw = 30
    
    For i = 0 To fpw - 1
        Pos(i).Visible = True
    Next i
    If TestControl.myFilter.HomeOnStart(2) Then
        CheckHomeOnStart.value = Checked
        
    End If
    
    If fpw < 30 Then
        For i = fpw To 29
            Pos(i).Visible = False
        Next i
        
        If fpw <= 10 Then
            FormFilter2.Height = 3430
        ElseIf fpw <= 20 Then
            FormFilter2.Height = 4305
             Else
            FormFilte2.Height = 5100
        End If
    End If
End Sub

Private Sub Pos_Click(Index As Integer)
    TestControl.myFilter.MoveToPosition 2, Index + 1
End Sub

⌨️ 快捷键说明

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