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

📄 strings.frm

📁 不错的一个VB菜单设计 界面和功能都不错
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmStrings 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Strings"
   ClientHeight    =   2490
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4350
   Icon            =   "Strings.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2490
   ScaleWidth      =   4350
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox txtEBCDIC 
      Height          =   315
      Left            =   150
      TabIndex        =   5
      Top             =   1530
      Width           =   2865
   End
   Begin VB.CommandButton cmdConvert 
      Caption         =   "Convert"
      Height          =   375
      Left            =   3180
      TabIndex        =   3
      Top             =   1500
      Width           =   1005
   End
   Begin VB.TextBox txtConverted 
      Height          =   315
      Left            =   150
      TabIndex        =   2
      Top             =   930
      Width           =   2865
   End
   Begin VB.TextBox txtConvert 
      Height          =   315
      Left            =   150
      TabIndex        =   0
      Text            =   "c:\winnt\profiles\administrator\recect files\Microsoft Word\documents"
      Top             =   330
      Width           =   4035
   End
   Begin VB.Label Label1 
      Caption         =   "FAST.lib 2000 for Windows has a lot of string manipulation functions"
      Height          =   375
      Index           =   3
      Left            =   90
      TabIndex        =   7
      Top             =   2040
      Width           =   4230
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "String to converted to EBCDIC"
      Height          =   195
      Index           =   2
      Left            =   150
      TabIndex        =   6
      Top             =   1320
      Width           =   2160
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "String to converted (Ellipsis)"
      Height          =   195
      Index           =   1
      Left            =   150
      TabIndex        =   4
      Top             =   720
      Width           =   1950
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "String to convert"
      Height          =   195
      Index           =   0
      Left            =   150
      TabIndex        =   1
      Top             =   120
      Width           =   1170
   End
End
Attribute VB_Name = "frmStrings"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdConvert_Click()
  Dim strText   As String
  Dim lngWidth  As Long
  Dim lngHeight As Long
  Dim objString As New flwdata.FWStrings
  
  strText = txtConvert.Text
  lngWidth = Me.ScaleX(txtConverted.Width, Me.ScaleMode, vbPixels)
  lngHeight = Me.ScaleY(txtConverted.Height, Me.ScaleMode, vbPixels)
  
  txtConverted = objString.EllipseText(strText, lngWidth, lngHeight, Me.hDC, flwdata.flwEllipsePath)
  
  txtEBCDIC.Text = objString.ASCIIToEBCDIC(strText)
End Sub

⌨️ 快捷键说明

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