home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmWordWrap
- Caption = "WordWrap and Autosize"
- Height = 4740
- Left = 1650
- LinkTopic = "Form1"
- ScaleHeight = 4335
- ScaleWidth = 6000
- Top = 1395
- Visible = 0 'False
- Width = 6120
- Begin CheckBox chkAutoSize
- Caption = "&AutoSize"
- Height = 495
- Left = 3840
- TabIndex = 4
- Top = 1560
- Width = 1215
- End
- Begin CheckBox chkWordWrap
- Caption = "&WordWrap"
- Height = 495
- Left = 3840
- TabIndex = 3
- Top = 2040
- Width = 1215
- End
- Begin CommandButton cmdClose
- Caption = "&Close"
- Height = 495
- Left = 3360
- TabIndex = 1
- Top = 3360
- Width = 1215
- End
- Begin CommandButton cmdDisplay
- Caption = "&Display"
- Default = -1 'True
- Height = 495
- Left = 1440
- TabIndex = 0
- Top = 3360
- Width = 1215
- End
- Begin Label lblDisplay
- BorderStyle = 1 'Fixed Single
- Caption = "A demonstration of the AutoSize and WordWrap properties."
- Height = 255
- Left = 480
- TabIndex = 2
- Top = 720
- Width = 1695
- End
- Sub cmdClose_Click ()
- Unload Me ' Unload this form.
- End Sub
- Sub cmdDisplay_Click ()
- ' Reset the example
- lblDisplay.AutoSize = False
- lblDisplay.WordWrap = False
- lblDisplay.Width = 1695
- lblDisplay.Height = 255
- ' Check for WordWrap and Autosize
- If chkWordWrap.Value = 1 Then
- lblDisplay.WordWrap = True
- End If
- If chkAutoSize.Value = 1 Then
- lblDisplay.AutoSize = True
- End If
- End Sub
-