📄 frmstage.frm
字号:
VERSION 5.00
Begin VB.Form frmStage
Caption = "Stage Params"
ClientHeight = 4485
ClientLeft = 60
ClientTop = 345
ClientWidth = 3390
LinkTopic = "Form1"
ScaleHeight = 4485
ScaleWidth = 3390
StartUpPosition = 3 'Windows Default
Begin VB.TextBox txtStage
Enabled = 0 'False
Height = 375
Left = 240
TabIndex = 13
Text = "Text1"
Top = 360
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "Cancel"
Height = 495
Left = 1920
TabIndex = 12
Top = 3720
Width = 855
End
Begin VB.CommandButton Command1
Caption = "OK"
Height = 495
Left = 360
TabIndex = 11
Top = 3720
Width = 855
End
Begin VB.ListBox lstLimits
Height = 450
Left = 240
TabIndex = 10
Top = 2880
Width = 1335
End
Begin VB.TextBox txtMicro
Height = 375
Left = 240
TabIndex = 7
Text = "Text4"
Top = 2280
Width = 1095
End
Begin VB.TextBox txtYTravel
Height = 375
Left = 240
TabIndex = 6
Text = "Text3"
Top = 1800
Width = 1095
End
Begin VB.TextBox txtXtravel
Height = 375
Left = 240
TabIndex = 5
Text = "Text2"
Top = 1320
Width = 1095
End
Begin VB.TextBox txtType
Height = 375
Left = 240
TabIndex = 1
Text = "Text1"
Top = 840
Width = 1095
End
Begin VB.Label Label6
Caption = "Limits"
Height = 255
Left = 1800
TabIndex = 9
Top = 3000
Width = 735
End
Begin VB.Label Label5
Caption = "MicroSteps/micron"
Height = 255
Left = 1560
TabIndex = 8
Top = 2400
Width = 1455
End
Begin VB.Label Label4
Caption = "Y Travel (mm)"
Height = 255
Left = 1560
TabIndex = 4
Top = 1920
Width = 1095
End
Begin VB.Label Label3
Caption = "X Travel (mm)"
Height = 255
Left = 1560
TabIndex = 3
Top = 1440
Width = 1095
End
Begin VB.Label Label2
Caption = "Description"
Height = 255
Left = 1560
TabIndex = 2
Top = 960
Width = 975
End
Begin VB.Label Label1
Caption = "Stage Type"
Height = 255
Left = 1560
TabIndex = 0
Top = 480
Width = 975
End
End
Attribute VB_Name = "frmStage"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
TestControl.myStage.SetParams frmStage.txtType, _
Val(frmStage.txtXtravel), Val(frmStage.txtYTravel), _
Val(frmStage.txtMicro), frmStage.lstLimits.ListIndex
Me.Visible = False
End Sub
Private Sub Command2_Click()
Me.Visible = False
End Sub
Private Sub Form_Load()
Dim i As Integer
lstLimits.AddItem "Normally Closed"
lstLimits.AddItem "Normally Open"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -