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

📄 frmtext.frm

📁 这是基于MapX4.0的房屋测绘管理信息系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmText 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "文字"
   ClientHeight    =   1965
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   3720
   Icon            =   "frmText.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1965
   ScaleWidth      =   3720
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.TextBox txtCaption 
      Height          =   360
      Left            =   1155
      TabIndex        =   0
      Text            =   "Text1"
      Top             =   165
      Width           =   2400
   End
   Begin VB.CommandButton CancelButton 
      Caption         =   "取消(&C)"
      Height          =   420
      Left            =   1905
      TabIndex        =   2
      Top             =   1260
      Width           =   1215
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定(&O)"
      Default         =   -1  'True
      Height          =   420
      Left            =   480
      TabIndex        =   1
      Top             =   1260
      Width           =   1215
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "请输入文字"
      Height          =   180
      Left            =   90
      TabIndex        =   3
      Top             =   255
      Width           =   900
   End
End
Attribute VB_Name = "frmText"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mCanceled As Boolean
Dim mText As String
Private Sub CancelButton_Click()
    Unload Me
End Sub
Private Sub Form_Load()
     mCanceled = True
End Sub
Private Sub OKButton_Click()
    mCanceled = False
    mText = txtCaption.Text
    Unload Me
End Sub
Public Property Get FeatureCaption() As String
    FeatureCaption = mText
End Property
Public Property Let FeatureCaption(ByVal vNewValue As String)
    mText = vNewValue
    txtCaption.Text = mText
End Property
Public Property Get IsCanceled() As Variant
    IsCanceled = mCanceled
End Property
Public Sub SetPosition(ByVal X As Double, ByVal Y As Double)
    On Error Resume Next
    Me.Left = X
    Me.Top = Y
End Sub
Private Sub txtCaption_Change()

End Sub

Private Sub txtCaption_GotFocus()
    On Error Resume Next
    txtCaption.SelStart = 0
    txtCaption.SelLength = Len(txtCaption.Text)
End Sub

⌨️ 快捷键说明

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