home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{FB51CC5D-C9AE-11D2-9B03-006052087927}#1.0#0"; "VSRESIZE.OCX"
- Begin VB.Form Form1
- Caption = "VisualSoftResize TEST FORM"
- ClientHeight = 3840
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6375
- LinkTopic = "Form1"
- ScaleHeight = 3840
- ScaleWidth = 6375
- StartUpPosition = 3 'Windows Default
- Begin VisualSoftResize.VSResize VSResize1
- Left = 5400
- Top = 2880
- _ExtentX = 820
- _ExtentY = 820
- MaxWidth = 15360
- MaxHeight = 11520
- MDIWidth = 6495
- MDIHeight = 4245
- End
- Begin VB.CommandButton Command1
- Caption = "InitF"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 3
- Left = 240
- TabIndex = 5
- Top = 1440
- Width = 1695
- End
- Begin VB.CheckBox Check3
- Caption = "AutoCenterForm"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 240
- TabIndex = 4
- Top = 3240
- Width = 2055
- End
- Begin VB.CheckBox Check2
- Caption = "RestrictHeight"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 3000
- TabIndex = 3
- Top = 720
- Width = 1935
- End
- Begin VB.CheckBox Check1
- Caption = "RestrictWidth"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 3000
- TabIndex = 2
- Top = 240
- Width = 1815
- End
- Begin VB.CommandButton Command1
- Caption = "CenterForm"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 2
- Left = 240
- TabIndex = 1
- Top = 840
- Width = 1695
- End
- Begin VB.CommandButton Command1
- Caption = "InitialSize"
- BeginProperty Font
- Name = "Arial"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Index = 1
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 1695
- End
- Begin VB.Label Label2
- Caption = "Label2"
- Height = 975
- Left = 2280
- TabIndex = 7
- Top = 2160
- Width = 2775
- End
- Begin VB.Label Label1
- Caption = "Label1"
- Height = 855
- Left = 2400
- TabIndex = 6
- Top = 1200
- Width = 2535
- End
- Begin VB.Line Line3
- X1 = 5160
- X2 = 6240
- Y1 = 1200
- Y2 = 1200
- End
- Begin VB.Line Line2
- X1 = 5160
- X2 = 6120
- Y1 = 2400
- Y2 = 1440
- End
- Begin VB.Line Line1
- X1 = 5040
- X2 = 6120
- Y1 = 240
- Y2 = 1080
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Check1_Click()
- If Check1.Value = 0 Then
- VSResize1.RestrictWidth = False
- Label1.Caption = ""
- Else
- VSResize1.RestrictWidth = True
- VSResize1.MaxWidth = VSResize1.MinWidth * 1.3
- Label1.Caption = "MinWidth set to Form1.Width, MaxWidth set to Form1.Width*1.3"
- End If
- End Sub
- Private Sub Check2_Click()
- If Check2.Value = 0 Then
- VSResize1.RestrictHeight = False
- Label2.Caption = ""
- Else
- VSResize1.RestrictHeight = True
- VSResize1.MaxHeight = VSResize1.MinHeight * 1.3
- Label2.Caption = "MinHeight set to Form1.Height, MaxHeight set to Form1.Height*1.3"
- End If
- End Sub
- Private Sub Check3_Click()
- If Check3.Value = 0 Then
- VSResize1.AutoCenterForm = False
- Else
- VSResize1.AutoCenterForm = True
- End If
- End Sub
- Private Sub Command1_Click(Index As Integer)
- Select Case Index
- Case 3
- VSResize1.InitF
- Case 1
- VSResize1.InitialSize
- Case 2
- VSResize1.CenterForm
- End Select
- End Sub
-