Caption = "The property FontSizeRelativeToWidthAndHeight alters the Font Resize behavior."
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 852
Left = 120
TabIndex = 11
Top = 3360
Width = 3852
End
Begin THBResizeLibCtl.THBResize THBResize1
Height = 372
Left = 120
TabIndex = 10
Top = 4320
Width = 372
_cx = 656
_cy = 656
NoFontResizeAll = 0 'False
ResizeOnlyDirectChilds= -1 'True
LimitFormWidthMin= 0
LimitFormWidthMax= 0
LimitFormHeightMin= 0
LimitFormHeightMax= 0
HideControlsSmallerThanWidth= 0
HideControlsSmallerThanHeight= 0
FontSizeRelativeToWidthAndHeight= -1 'True
NumSpecialObjects= 0
End
Begin VB.Line Line8
BorderColor = &H008080FF&
BorderWidth = 2
X1 = 1440
X2 = 3840
Y1 = 3120
Y2 = 3120
End
Begin VB.Line Line7
BorderColor = &H008080FF&
BorderWidth = 2
X1 = 1440
X2 = 3840
Y1 = 2040
Y2 = 2040
End
Begin VB.Line Line6
BorderColor = &H008080FF&
BorderWidth = 2
X1 = 1440
X2 = 3840
Y1 = 2280
Y2 = 2280
End
Begin VB.Line Line5
BorderColor = &H008080FF&
BorderWidth = 2
X1 = 3840
X2 = 3840
Y1 = 3120
Y2 = 2040
End
Begin VB.Line Line4
BorderColor = &H008080FF&
BorderWidth = 2
X1 = 2640
X2 = 2640
Y1 = 3120
Y2 = 2040
End
Begin VB.Line Line3
BorderColor = &H008080FF&
BorderWidth = 2
X1 = 1440
X2 = 1440
Y1 = 3120
Y2 = 2040
End
Begin VB.Label Label6
Alignment = 2 'Center
Caption = "Height"
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 2760
TabIndex = 9
Top = 2040
Width = 732
End
Begin VB.Label Label5
Alignment = 2 'Center
Caption = "Width"
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 1560
TabIndex = 8
Top = 2040
Width = 972
End
Begin VB.Label Label4
Caption = "AfterResize"
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 120
TabIndex = 4
Top = 2760
Width = 1332
End
Begin VB.Label Label3
Caption = "BeforeResize"
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 120
TabIndex = 2
Top = 2400
Width = 1332
End
Begin VB.Label Label2
Caption = "Two new events help you to manually resize whatever you want"
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 492
Left = 120
TabIndex = 1
Top = 1440
Width = 3852
End
Begin VB.Label Label1
Caption = "Supports Lines"
BeginProperty Font
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 1320
TabIndex = 0
Top = 480
Width = 1932
End
Begin VB.Line Line2
BorderColor = &H000000FF&
BorderWidth = 3
X1 = 720
X2 = 960
Y1 = 360
Y2 = 840
End
Begin VB.Line Line1
BorderColor = &H0000FF00&
BorderWidth = 3
X1 = 240
X2 = 600
Y1 = 840
Y2 = 360
End
End
Attribute VB_Name = "frmNewToVersion2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
THBResize1.hWnd = Me.hWnd
End Sub
Private Sub THBResize1_AfterResize(ByVal ContainerWidthOrig As Long, ByVal ContainerWidthNew As Long, ByVal ContainerWidthPerc As Double, ByVal ContainerHeightOrig As Long, ByVal ContainerHeightNew As Long, ByVal ContainerHeightPerc As Double)
Private Sub THBResize1_BeforeResize(ByVal ContainerWidthOrig As Long, ByVal ContainerWidthNew As Long, ByVal ContainerWidthPerc As Double, ByVal ContainerHeightOrig As Long, ByVal ContainerHeightNew As Long, ByVal ContainerHeightPerc As Double)