Form1.frm
上传用户:yj36_1982
上传日期:2022-07-13
资源大小:63k
文件大小:10k
源码类别:

界面编程

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{E95A2510-F3D1-416D-823B-4F840FE98091}#3.0#0"; "Command.ocx"
  3. Begin VB.Form Form1 
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "ActiveXTest"
  6.    ClientHeight    =   3015
  7.    ClientLeft      =   45
  8.    ClientTop       =   405
  9.    ClientWidth     =   5685
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   3015
  14.    ScaleWidth      =   5685
  15.    StartUpPosition =   2  '屏幕中心
  16.    Begin 工程1.QQ_Frame QQ_Frame1 
  17.       Height          =   2895
  18.       Left            =   120
  19.       TabIndex        =   3
  20.       Top             =   60
  21.       Width           =   5535
  22.       _ExtentX        =   9763
  23.       _ExtentY        =   5106
  24.       Caption         =   "QQ风格控件"
  25.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  26.          Name            =   "宋体"
  27.          Size            =   9
  28.          Charset         =   134
  29.          Weight          =   400
  30.          Underline       =   0   'False
  31.          Italic          =   0   'False
  32.          Strikethrough   =   0   'False
  33.       EndProperty
  34.       Begin CSCommand.Command Command2 
  35.          Height          =   315
  36.          Left            =   4440
  37.          TabIndex        =   14
  38.          Top             =   2400
  39.          Width           =   975
  40.          _ExtentX        =   1720
  41.          _ExtentY        =   556
  42.          IconAlign       =   0
  43.          Icon            =   "Form1.frx":0000
  44.          Caption         =   "退出"
  45.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  46.             Name            =   "宋体"
  47.             Size            =   9
  48.             Charset         =   134
  49.             Weight          =   400
  50.             Underline       =   0   'False
  51.             Italic          =   0   'False
  52.             Strikethrough   =   0   'False
  53.          EndProperty
  54.          ShowFocus       =   0   'False
  55.          Picture         =   "Form1.frx":001C
  56.       End
  57.       Begin CSCommand.Command Command1 
  58.          Height          =   315
  59.          Left            =   0
  60.          TabIndex        =   13
  61.          Top             =   2400
  62.          Width           =   1215
  63.          _ExtentX        =   2143
  64.          _ExtentY        =   556
  65.          IconAlign       =   0
  66.          Icon            =   "Form1.frx":556A
  67.          Caption         =   "清空文本框"
  68.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  69.             Name            =   "宋体"
  70.             Size            =   9
  71.             Charset         =   134
  72.             Weight          =   400
  73.             Underline       =   0   'False
  74.             Italic          =   0   'False
  75.             Strikethrough   =   0   'False
  76.          EndProperty
  77.          ShowFocus       =   0   'False
  78.          Picture         =   "Form1.frx":5586
  79.       End
  80.       Begin 工程1.QQRadioButton QQRadioButton3 
  81.          Height          =   255
  82.          Left            =   3600
  83.          TabIndex        =   12
  84.          Top             =   1920
  85.          Width           =   1935
  86.          _ExtentX        =   3413
  87.          _ExtentY        =   450
  88.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  89.             Name            =   "宋体"
  90.             Size            =   9
  91.             Charset         =   134
  92.             Weight          =   400
  93.             Underline       =   0   'False
  94.             Italic          =   0   'False
  95.             Strikethrough   =   0   'False
  96.          EndProperty
  97.          Caption         =   "QQ2008_Darkbluesea"
  98.       End
  99.       Begin 工程1.QQRadioButton QQRadioButton2 
  100.          Height          =   255
  101.          Left            =   1800
  102.          TabIndex        =   11
  103.          Top             =   1920
  104.          Width           =   1575
  105.          _ExtentX        =   2778
  106.          _ExtentY        =   450
  107.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  108.             Name            =   "宋体"
  109.             Size            =   9
  110.             Charset         =   134
  111.             Weight          =   400
  112.             Underline       =   0   'False
  113.             Italic          =   0   'False
  114.             Strikethrough   =   0   'False
  115.          EndProperty
  116.          Caption         =   "QQ2009_Skyblue"
  117.       End
  118.       Begin 工程1.QQRadioButton QQRadioButton1 
  119.          Height          =   255
  120.          Left            =   0
  121.          TabIndex        =   10
  122.          Top             =   1920
  123.          Width           =   1575
  124.          _ExtentX        =   2778
  125.          _ExtentY        =   450
  126.          Value           =   -1  'True
  127.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  128.             Name            =   "宋体"
  129.             Size            =   9
  130.             Charset         =   134
  131.             Weight          =   400
  132.             Underline       =   0   'False
  133.             Italic          =   0   'False
  134.             Strikethrough   =   0   'False
  135.          EndProperty
  136.          Caption         =   "QQ2010_Natural"
  137.       End
  138.       Begin 工程1.QQText QQText1 
  139.          Height          =   375
  140.          Left            =   0
  141.          TabIndex        =   8
  142.          Top             =   1080
  143.          Width           =   5415
  144.          _ExtentX        =   9551
  145.          _ExtentY        =   661
  146.       End
  147.       Begin 工程1.QQCheckBox QQCheckBox3 
  148.          Height          =   255
  149.          Left            =   4080
  150.          TabIndex        =   6
  151.          Top             =   420
  152.          Width           =   1335
  153.          _ExtentX        =   2355
  154.          _ExtentY        =   450
  155.          Enabled         =   0   'False
  156.          CheckBoxLook    =   1
  157.          Caption         =   "是否多行显示"
  158.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  159.             Name            =   "宋体"
  160.             Size            =   9
  161.             Charset         =   134
  162.             Weight          =   400
  163.             Underline       =   0   'False
  164.             Italic          =   0   'False
  165.             Strikethrough   =   0   'False
  166.          EndProperty
  167.       End
  168.       Begin 工程1.QQCheckBox QQCheckBox2 
  169.          Height          =   255
  170.          Left            =   2520
  171.          TabIndex        =   5
  172.          Top             =   420
  173.          Width           =   1335
  174.          _ExtentX        =   2355
  175.          _ExtentY        =   450
  176.          CheckBoxLook    =   1
  177.          Caption         =   "是否锁定文本"
  178.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  179.             Name            =   "宋体"
  180.             Size            =   9
  181.             Charset         =   134
  182.             Weight          =   400
  183.             Underline       =   0   'False
  184.             Italic          =   0   'False
  185.             Strikethrough   =   0   'False
  186.          EndProperty
  187.       End
  188.       Begin 工程1.QQCheckBox QQCheckBox1 
  189.          Height          =   255
  190.          Left            =   0
  191.          TabIndex        =   4
  192.          Top             =   420
  193.          Width           =   2415
  194.          _ExtentX        =   4260
  195.          _ExtentY        =   450
  196.          CheckBoxLook    =   1
  197.          Value           =   1
  198.          Caption         =   "是否将Enabled设置为True"
  199.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  200.             Name            =   "宋体"
  201.             Size            =   9
  202.             Charset         =   134
  203.             Weight          =   400
  204.             Underline       =   0   'False
  205.             Italic          =   0   'False
  206.             Strikethrough   =   0   'False
  207.          EndProperty
  208.       End
  209.       Begin VB.Label Label2 
  210.          Caption         =   "ButtonSkin:"
  211.          Height          =   255
  212.          Left            =   0
  213.          TabIndex        =   9
  214.          Top             =   1560
  215.          Width           =   1215
  216.       End
  217.       Begin VB.Label Label1 
  218.          Caption         =   "QQ文本框:"
  219.          Height          =   255
  220.          Left            =   0
  221.          TabIndex        =   7
  222.          Top             =   840
  223.          Width           =   975
  224.       End
  225.    End
  226.    Begin VB.PictureBox PictureClip3 
  227.       Height          =   480
  228.       Left            =   0
  229.       ScaleHeight     =   420
  230.       ScaleWidth      =   1140
  231.       TabIndex        =   0
  232.       Top             =   6000
  233.       Width           =   1200
  234.    End
  235.    Begin VB.PictureBox PictureClip2 
  236.       Height          =   480
  237.       Left            =   0
  238.       ScaleHeight     =   420
  239.       ScaleWidth      =   1140
  240.       TabIndex        =   1
  241.       Top             =   5640
  242.       Width           =   1200
  243.    End
  244.    Begin VB.PictureBox PictureClip1 
  245.       Height          =   480
  246.       Left            =   0
  247.       ScaleHeight     =   420
  248.       ScaleWidth      =   1140
  249.       TabIndex        =   2
  250.       Top             =   5280
  251.       Width           =   1200
  252.    End
  253. End
  254. Attribute VB_Name = "Form1"
  255. Attribute VB_GlobalNameSpace = False
  256. Attribute VB_Creatable = False
  257. Attribute VB_PredeclaredId = True
  258. Attribute VB_Exposed = False
  259. Private Sub Command1_Click()
  260. QQText1.Text = ""
  261. End Sub
  262. Private Sub Command2_Click()
  263. Unload Me
  264. End Sub
  265. Private Sub Form_Load()
  266. Me.Icon = LoadPicture()
  267. QQText1.Enabled = True
  268. End Sub
  269. Private Sub QQCheckBox1_Click()
  270. If QQCheckBox1.Value = Checked Then
  271. QQText1.Enabled = False
  272. Else
  273. QQText1.Enabled = True
  274. End If
  275. End Sub
  276. Private Sub QQCheckBox2_Click()
  277. If QQCheckBox2.Value = Checked Then
  278. QQText1.Locked = False
  279. Else
  280. QQText1.Locked = True
  281. End If
  282. End Sub
  283. Private Sub QQRadioButton1_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  284. Command1.Picture = LoadPicture(App.Path & "QQ2010btn.bmp")
  285. Command2.Picture = LoadPicture(App.Path & "QQ2010btn.bmp")
  286. End Sub
  287. Private Sub QQRadioButton2_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  288. Command1.Picture = LoadPicture(App.Path & "QQ2009btn.bmp")
  289. Command2.Picture = LoadPicture(App.Path & "QQ2009btn.bmp")
  290. End Sub
  291. Private Sub QQRadioButton3_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
  292. Command1.Picture = LoadPicture(App.Path & "QQ2008btn.bmp")
  293. Command2.Picture = LoadPicture(App.Path & "QQ2008btn.bmp")
  294. End Sub