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

📄 frmconfiguredut.frm

📁 AD9954源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmConfigureDUT 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Configure The AD9859"
   ClientHeight    =   4110
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3150
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   ScaleHeight     =   4110
   ScaleWidth      =   3150
   Begin VB.CommandButton cmdOperationalMode 
      Caption         =   "Linear Sweep"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   6
      Left            =   120
      Style           =   1  'Graphical
      TabIndex        =   7
      Top             =   3600
      Width           =   2895
   End
   Begin VB.CommandButton cmdOperationalMode 
      Caption         =   "Continuous Re-Circulate"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   5
      Left            =   120
      Style           =   1  'Graphical
      TabIndex        =   6
      Top             =   3120
      Width           =   2895
   End
   Begin VB.CommandButton cmdOperationalMode 
      Caption         =   "Continuous Bi-Directional Ramp"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   4
      Left            =   120
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   2640
      Width           =   2895
   End
   Begin VB.CommandButton cmdOperationalMode 
      Caption         =   "Bi-Directional Ramp"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   3
      Left            =   120
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   2160
      Width           =   2895
   End
   Begin VB.CommandButton cmdOperationalMode 
      Caption         =   "Ramp Up"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   2
      Left            =   120
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   1680
      Width           =   2895
   End
   Begin VB.CommandButton cmdOperationalMode 
      Caption         =   "Direct Switch"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   1
      Left            =   120
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1200
      Width           =   2895
   End
   Begin VB.CommandButton cmdOperationalMode 
      Caption         =   "Single Tone"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   0
      Left            =   120
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   720
      Width           =   2895
   End
   Begin VB.Label lblSelectMode 
      Height          =   495
      Index           =   6
      Left            =   60
      TabIndex        =   14
      Top             =   3540
      Width           =   3015
   End
   Begin VB.Label lblSelectMode 
      Height          =   495
      Index           =   5
      Left            =   60
      TabIndex        =   13
      Top             =   3060
      Width           =   3015
   End
   Begin VB.Label lblSelectMode 
      Height          =   495
      Index           =   4
      Left            =   60
      TabIndex        =   12
      Top             =   2580
      Width           =   3015
   End
   Begin VB.Label lblSelectMode 
      Height          =   495
      Index           =   3
      Left            =   60
      TabIndex        =   11
      Top             =   2100
      Width           =   3015
   End
   Begin VB.Label lblSelectMode 
      Height          =   495
      Index           =   2
      Left            =   60
      TabIndex        =   10
      Top             =   1620
      Width           =   3015
   End
   Begin VB.Label lblSelectMode 
      Height          =   495
      Index           =   1
      Left            =   60
      TabIndex        =   9
      Top             =   1140
      Width           =   3015
   End
   Begin VB.Label lblSelectMode 
      BackColor       =   &H0000FF00&
      Height          =   495
      Index           =   0
      Left            =   60
      TabIndex        =   8
      Top             =   660
      Width           =   3015
   End
   Begin VB.Label lblMsg 
      Caption         =   "Select the operational mode you want for the AD9859."
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2895
   End
End
Attribute VB_Name = "frmConfigureDUT"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdOperationalMode_Click(Index As Integer)
    Dim cntr As Integer
    
    'Unselect all of the other buttons
    For cntr = 0 To 6
        lblSelectMode(cntr).BackColor = vb3DFace
    Next cntr
    
    'Hilight the one selected
    lblSelectMode(Index).BackColor = &HFF00&
End Sub

Private Sub cmdOperationalMode_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = 1 Then
        'Make sure the click event happens
        cmdOperationalMode_Click (Index)
    End If
End Sub

Private Sub cmdOperationalMode_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
'Put this code in MouseMove event. In this example, I put a CommandButton on a
'form with the name Command1

Static CtrMov As Boolean
With cmdOperationalMode(Index) 'Change this 'Command1' to your control name
    If (X < 0) Or (Y < 0) Or (X > .Width) Or (Y > .Height) Then
        ReleaseCapture
        CtrMov = False

        'Put here your code to LostMouseFocus
        'For example:
        'Me.Print "LostMouseFocus"
        cmdOperationalMode(Index).BackColor = &H8000000F

    Else
        SetCapture .hWnd
        If CtrMov = False Then
            CtrMov = True

            'Put here your code to GetMouseFocus
            'For example:
            'Me.Print "GetMouseFocus"
            cmdOperationalMode(Index).BackColor = &HFF00&

        End If
    End If
End With
End Sub

Private Sub optOperationalMode_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
End Sub

⌨️ 快捷键说明

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