home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{C3D62F85-4FEA-11D2-B62A-705E06C10000}#3.0#0"; "AutoResizeControl.ocx"
- Begin VB.Form frmTst
- Caption = "THEMA AutoResizeControl Example"
- ClientHeight = 3735
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5355
- LinkTopic = "Form1"
- ScaleHeight = 3735
- ScaleWidth = 5355
- StartUpPosition = 3 'Windows Default
- Begin VB.HScrollBar HScroll1
- Height = 210
- Left = 2880
- TabIndex = 7
- Top = 1140
- Width = 2280
- End
- Begin VB.Frame Frame1
- Caption = "Exit"
- BeginProperty Font
- Name = "Courier New"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 735
- Left = 390
- TabIndex = 5
- Top = 2505
- Width = 4455
- Begin VB.CommandButton Command2
- Caption = "Exit"
- BeginProperty Font
- Name = "Courier New"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 345
- Left = 225
- TabIndex = 6
- Top = 270
- Width = 4050
- End
- End
- Begin VB.CheckBox Check1
- Caption = "Adjust FontSize"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 270
- Left = 735
- TabIndex = 2
- Top = 1125
- Value = 1 'Checked
- Width = 1995
- End
- Begin VB.CommandButton Command1
- Caption = "Beep"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 480
- Left = 60
- TabIndex = 0
- Top = 480
- Width = 5160
- End
- Begin AutoResizeControl.AutoResCtrl AutoResCtrl1
- Left = 210
- Top = 3990
- _ExtentX = 7594
- _ExtentY = 3731
- End
- Begin VB.Label Label4
- Alignment = 2 'Center
- Caption = "*** Resize this form ***"
- BeginProperty Font
- Name = "Arial"
- Size = 11.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H000000FF&
- Height = 270
- Left = 120
- TabIndex = 8
- Top = 3330
- Width = 5025
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- BorderStyle = 1 'Fixed Single
- Caption = "This is a TrueType font (Arial) and can be adjusted"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 150
- TabIndex = 4
- Top = 2100
- Width = 5055
- End
- Begin VB.Label Label2
- BackStyle = 0 'Transparent
- BorderStyle = 1 'Fixed Single
- Caption = "This is a non-TrueType font (MS Sans Serif) and can't be adjusted"
- Height = 315
- Left = 150
- TabIndex = 3
- Top = 1710
- Width = 5055
- End
- Begin VB.Image Image1
- Height = 435
- Left = 75
- Picture = "frmTst.frx":0000
- Stretch = -1 'True
- Top = 1020
- Width = 495
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "THEMA AutoResizeControl Example"
- BeginProperty Font
- Name = "Arial"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 330
- Left = 210
- TabIndex = 1
- Top = 45
- Width = 5025
- End
- Attribute VB_Name = "frmTst"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Check1_Click()
- 'Resizing can also be done in other events
- AutoResCtrl1.Resize frmTst, Check1.Value
- End Sub
- Private Sub Command1_Click()
- End Sub
- Private Sub Command2_Click()
- End Sub
- Private Sub Form_Load()
- 'Initialization has to be done only once, usually in the Form_Load event
- AutoResCtrl1.Initialize frmTst
- End Sub
- Private Sub Form_Resize()
- 'Resizing has to be done in the Resize event
- AutoResCtrl1.Resize frmTst, Check1.Value
- End Sub
-