?? frmsproperties.frm
字號:
VERSION 5.00
Begin VB.Form frmSProperies
BorderStyle = 3 'Fixed Dialog
Caption = "類型設(shè)置"
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 = "分?jǐn)偯?quot;
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
'設(shè)置基層戶號
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
'設(shè)置戶室類型
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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -