📄 frmsproperties.frm
字号:
VERSION 5.00
Begin VB.Form frmSProperies
BorderStyle = 3 'Fixed Dialog
Caption = "类型设置"
ClientHeight = 3225
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 5205
Icon = "frmSProperties.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3225
ScaleWidth = 5205
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.Frame Frame1
Caption = "类型"
Height = 2355
Left = 240
TabIndex = 4
Top = 690
Width = 3210
Begin VB.OptionButton optType
Caption = "未知类型"
Height = 180
Index = 0
Left = 360
TabIndex = 11
Top = 1575
Width = 1035
End
Begin VB.OptionButton optType
Caption = "墙体"
Height = 225
Index = 6
Left = 1860
TabIndex = 10
Top = 1155
Width = 885
End
Begin VB.OptionButton optType
Caption = "分摊面"
Height = 225
Index = 5
Left = 360
TabIndex = 9
Top = 1155
Width = 885
End
Begin VB.OptionButton optType
Caption = "阁楼"
Height = 225
Index = 4
Left = 1860
TabIndex = 8
Top = 765
Width = 885
End
Begin VB.OptionButton optType
Caption = "封闭阳台"
Height = 225
Index = 3
Left = 360
TabIndex = 7
Top = 765
Width = 1095
End
Begin VB.OptionButton optType
Caption = "阳台"
Height = 225
Index = 2
Left = 1860
TabIndex = 6
Top = 330
Width = 885
End
Begin VB.OptionButton optType
Caption = "户室"
Height = 225
Index = 1
Left = 360
TabIndex = 5
Top = 330
Value = -1 'True
Width = 885
End
End
Begin VB.TextBox txtHuhao
Height = 315
Left = 1470
TabIndex = 3
Top = 120
Width = 1860
End
Begin VB.CommandButton CancelButton
Cancel = -1 'True
Caption = "取消(&C)"
Height = 405
Left = 3795
TabIndex = 1
Top = 585
Width = 1215
End
Begin VB.CommandButton OKButton
Caption = "确定(&O)"
Default = -1 'True
Height = 405
Left = 3795
TabIndex = 0
Top = 105
Width = 1215
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "基层户号:"
Height = 180
Left = 285
TabIndex = 2
Top = 150
Width = 900
End
End
Attribute VB_Name = "frmSProperies"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mIsCanceled As Boolean
Dim mType As Long
Dim mHuhao As String
Private Sub CancelButton_Click()
mIsCanceled = True
Unload Me
End Sub
Private Sub Form_Load()
mIsCanceled = True
optType(mType).Value = True
End Sub
Private Sub OKButton_Click()
mIsCanceled = False
mHuhao = txtHuhao.Text
Unload Me
End Sub
'是否Cancel
Public Property Get IsCanceled() As Boolean
IsCanceled = mIsCanceled
End Property
'返回基层户号
Public Property Get HuHao() As String
HuHao = mHuhao
End Property
'设置基层户号
Public Property Let HuHao(ByVal szHuhao As String)
mHuhao = szHuhao
txtHuhao.Text = szHuhao
End Property
'返回户室类型
Public Property Get Htype() As Long
Htype = mType
End Property
'设置户室类型
Public Property Let Htype(ByVal lType As Long)
' If lType >= 1 And lType <= optType.Count Then
' mType = lType
' Else
' mType = 1
' End If
mType = lType
If mType <> 1 Then
txtHuhao.Enabled = False
txtHuhao.BackColor = Me.BackColor
End If
optType(mType).Value = True
End Property
Private Sub optType_Click(Index As Integer)
If Index <> 1 Then
txtHuhao.Text = ""
txtHuhao.Enabled = False
txtHuhao.BackColor = Me.BackColor
Else
txtHuhao.Text = mHuhao
txtHuhao.Enabled = True
txtHuhao.BackColor = RGB(255, 255, 255)
End If
mType = Index
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -