form1.frm

来自「本文件包含200个visual baisc实例」· FRM 代码 · 共 83 行

FRM
83
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "窗体文字效果"
   ClientHeight    =   3810
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5940
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   3810
   ScaleWidth      =   5940
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   405
      Left            =   4185
      TabIndex        =   2
      Top             =   2550
      Width           =   1695
   End
   Begin VB.CommandButton Command2 
      Caption         =   "立体效果"
      Height          =   405
      Left            =   4170
      TabIndex        =   1
      Top             =   1995
      Width           =   1695
   End
   Begin VB.CommandButton Command1 
      Caption         =   "阴影效果"
      Height          =   405
      Left            =   4170
      TabIndex        =   0
      Top             =   1455
      Width           =   1695
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Activate()
  ForeColor = QBColor(12)
  CurrentX = 800
  CurrentY = 1000
  FontSize = 20
  Print "阴影字"
End Sub

Private Sub Command1_Click()
'清除窗体
  Form1.Cls
  CurrentX = 800
  CurrentY = 1000
  FontSize = 20
  ForeColor = QBColor(8)
  Print "阴影字"
  CurrentX = 830
  CurrentY = 1030
  FontSize = 20
  ForeColor = QBColor(12)
  Print "阴影字"
End Sub

Private Sub Command2_Click()
  Form1.Cls
  CurrentX = 800
  CurrentY = 1000
  FontSize = 20
  ForeColor = QBColor(10)
  Print "立体字"
  CurrentX = 800
  CurrentY = 1025
  FontSize = 20
  ForeColor = QBColor(5)
  Print "立体字"
End Sub

Private Sub Command3_Click()
  End
End Sub

⌨️ 快捷键说明

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