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

📄 gpdfrm.frm

📁 dsp6713开发板的许多例程.对入门特别有用
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form GPDFrm 
   Caption         =   "RTDX General-Purpose Display"
   ClientHeight    =   2235
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7440
   Icon            =   "gpdfrm.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   ScaleHeight     =   2235
   ScaleWidth      =   7440
   StartUpPosition =   3  'Windows Default
   Begin MSComctlLib.StatusBar sts_GPDStatus 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   2
      Top             =   1860
      Width           =   7440
      _ExtentX        =   13123
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   2
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   3528
            MinWidth        =   3528
            Key             =   "pan_NumberOfChannels"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   3528
            MinWidth        =   3528
            Key             =   "pan_GPDState"
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ImageList imglst_GPDFrmImages 
      Left            =   6840
      Top             =   1200
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   6
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "gpdfrm.frx":030A
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "gpdfrm.frx":065C
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "gpdfrm.frx":09AE
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "gpdfrm.frx":0D00
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "gpdfrm.frx":1052
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "gpdfrm.frx":1164
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.Timer tmr_Method_Dispatch 
      Enabled         =   0   'False
      Interval        =   1
      Left            =   6480
      Top             =   1320
   End
   Begin MSComctlLib.Toolbar cmd_ToolBar 
      Align           =   1  'Align Top
      Height          =   630
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   7440
      _ExtentX        =   13123
      _ExtentY        =   1111
      ButtonWidth     =   2619
      ButtonHeight    =   953
      AllowCustomize  =   0   'False
      Wrappable       =   0   'False
      Appearance      =   1
      ImageList       =   "imglst_GPDFrmImages"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   5
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "Start"
            Key             =   "cmd_Toggle"
            Object.ToolTipText     =   "Start/Stop Execution"
            ImageIndex      =   1
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "Add Channel"
            Key             =   "cmd_AddChannel"
            Object.ToolTipText     =   "Add a channel to the channel list"
            ImageIndex      =   2
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "Modify Channel"
            Key             =   "cmd_ModifyChannel"
            Object.ToolTipText     =   "Modify existing channel"
            ImageIndex      =   3
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "Delete Channel"
            Key             =   "cmd_DeleteChannel"
            Object.ToolTipText     =   "Delete a channel from the list"
            ImageIndex      =   4
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "Delete All Channels"
            Key             =   "cmd_DeleteAllChannels"
            Object.ToolTipText     =   "Delete all channels"
            ImageIndex      =   5
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ListView lst_ChannelList 
      Height          =   1095
      Left            =   0
      TabIndex        =   1
      Top             =   600
      Width           =   7455
      _ExtentX        =   13150
      _ExtentY        =   1931
      View            =   3
      Arrange         =   1
      LabelWrap       =   -1  'True
      HideSelection   =   0   'False
      FullRowSelect   =   -1  'True
      GridLines       =   -1  'True
      _Version        =   393217
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   7
      BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Key             =   "col_ChannelName"
         Text            =   "Channel Name"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   1
         Key             =   "col_MaxMessages"
         Text            =   "Max Messages"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   2
         Key             =   "col_MaxMembers"
         Text            =   "Max Members"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   3
         Key             =   "col_ChannelType"
         Text            =   "Channel Type"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   4
         Key             =   "col_DataType"
         Text            =   "Data Type"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   5
         Key             =   "col_Board"
         Text            =   "Board"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   6
         Key             =   "col_Processor"
         Text            =   "Processor"
         Object.Width           =   2540
      EndProperty
   End
End
Attribute VB_Name = "GPDFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'*********************************************
' This Display shows how a Visual Basic      *
' program can be used to analyze data with   *
' Texas Instruments' Real Time Data Exchange *
' RTDX(TM) Technology.                       *
'                                            *
' The Code located in between these comments *
' '########## RTDX(TM) ##########' are       *
' important for RTDX(TM).                    *
'                                            *
' Copyright 1997-2000 Texas Instruments      *
'*********************************************

#Const DIRECT_INTERFACE_CONNECTION = 0

Const RTDXHELPFILE = "\GPDPROG.HLP"

' Button ID Constants
Const TOGGLE_BUTTON As Integer = 1
Const ADDCHANNEL_BUTTON As Integer = 2
Const MODIFYCHANNEL_BUTTON As Integer = 3
Const DELETECHANNEL_BUTTON As Integer = 4
Const DELETEALLCHANNELS_BUTTON As Integer = 5

' Channel List Column ID Constants
Const CHANNELNAME_ITEM As Integer = 0
Const MAXMESSAGES_ITEM As Integer = 1
Const MAXMEMBERS_ITEM As Integer = 2
Const CHANNELTYPE_ITEM As Integer = 3
Const DATATYPE_ITEM As Integer = 4
Const BOARD_ITEM As Integer = 5
Const PROCESSOR_ITEM As Integer = 6

' GPD Status
Const NUM_OF_CHANNELS_PANEL As Integer = 1
Const GPD_STATE_PANEL As Integer = 2
Const START_CAPTION As String = "START"
Const STOP_CAPTION As String = "STOP"
Const CONFIGURE_MODE_CAPTION As String = "MODE: CONFIGURE"
Const RUNNING_MODE_CAPTION As String = "MODE: RUNNING"
Const TOTAL_CHANNELS_CAPTION As String = "Total Channels: "

' Image Constants
Const START_IMAGE As Integer = 1
Const HALT_IMAGE As Integer = 6

' Array of Structures to hold Column break points
Private Column_Point() As Column_Break_Points

' Array of objects for multiple instatiation
'########## RTDX(TM) ##########'
Private rtdx() As Object
'########## RTDX(TM) ##########'

' Array of Method attributes
Private MethodValues() As RTDX_Method_Attributes

Private chan_incr As Integer         ' Channel incrementer
Private on_off_toggle As Boolean     ' On/Off toggle flag
Private channel_number As Integer    ' Global channel number variable

Private Sub Init_Prog()
    ' Shut off toggle switch
    on_off_toggle = False
    tmr_Method_Dispatch.Enabled = False
    tmr_Method_Dispatch.Interval = 1
    
    ' Set program state
    sts_GPDStatus.Panels.Item(GPD_STATE_PANEL).Text = CONFIGURE_MODE_CAPTION
    sts_GPDStatus.Panels.Item(NUM_OF_CHANNELS_PANEL).Text = TOTAL_CHANNELS_CAPTION + "0"
    
    ' Disable all buttons that require available channels
    cmd_ToolBar.Buttons.Item(TOGGLE_BUTTON).Enabled = False
    cmd_ToolBar.Buttons.Item(MODIFYCHANNEL_BUTTON).Enabled = False
    cmd_ToolBar.Buttons.Item(DELETECHANNEL_BUTTON).Enabled = False
    cmd_ToolBar.Buttons.Item(DELETEALLCHANNELS_BUTTON).Enabled = False
    
End Sub

Private Sub Init_Grid()
    Dim total_columns As Long
    Dim total_rows As Long
    Dim nbr_rows As Long
    Dim channel_counter As Long
    Dim colinc As Integer
    Dim rowinc As Integer

⌨️ 快捷键说明

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