📄 gpdfrm.frm
字号:
VERSION 5.00Object = "{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 EndEndAttribute VB_Name = "GPDFrm"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseOption 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 = 0Const RTDXHELPFILE = "\GPDPROG.HLP"' Button ID ConstantsConst TOGGLE_BUTTON As Integer = 1Const ADDCHANNEL_BUTTON As Integer = 2Const MODIFYCHANNEL_BUTTON As Integer = 3Const DELETECHANNEL_BUTTON As Integer = 4Const DELETEALLCHANNELS_BUTTON As Integer = 5' Channel List Column ID ConstantsConst CHANNELNAME_ITEM As Integer = 0Const MAXMESSAGES_ITEM As Integer = 1Const MAXMEMBERS_ITEM As Integer = 2Const CHANNELTYPE_ITEM As Integer = 3Const DATATYPE_ITEM As Integer = 4Const BOARD_ITEM As Integer = 5Const PROCESSOR_ITEM As Integer = 6' GPD StatusConst NUM_OF_CHANNELS_PANEL As Integer = 1Const GPD_STATE_PANEL As Integer = 2Const 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 ConstantsConst START_IMAGE As Integer = 1Const HALT_IMAGE As Integer = 6' Array of Structures to hold Column break pointsPrivate Column_Point() As Column_Break_Points' Array of objects for multiple instatiation'########## RTDX(TM) ##########'Private rtdx() As Object'########## RTDX(TM) ##########'' Array of Method attributesPrivate MethodValues() As RTDX_Method_AttributesPrivate chan_incr As Integer ' Channel incrementerPrivate on_off_toggle As Boolean ' On/Off toggle flagPrivate channel_number As Integer ' Global channel number variablePrivate 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 SubPrivate 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 + -