home *** CD-ROM | disk | FTP | other *** search
- Type LabelMasterForm From SampleMasterForm
- Dim Label1 As New Label
- Dim optLeft As New OptionButton
- Dim optCenter As New OptionButton
- Dim optRight As New OptionButton
- Dim Label2 As New Label
- Dim optNone As New OptionButton
- Dim optLine As New OptionButton
- Dim Label3 As New Label
- Dim chkWordWrap As New CheckBox
- Dim lblWelcome As New Label
- Dim FontWelcome As New Font
-
- ' METHODS for object: LabelMasterForm
- Sub optLeft_Click()
- lblWelcome.Alignment = "Left"
- chkWordWrap.Enabled = True
- End Sub
-
- Sub optCenter_Click()
- lblWelcome.Alignment = "Center"
- chkWordWrap.Value = 1
- chkWordWrap.Enabled = False
- End Sub
-
- Sub optRight_Click()
- lblWelcome.Alignment = "Right"
- chkWordWrap.Value = 1
- chkWordWrap.Enabled = False
- End Sub
-
- Sub chkWordWrap_Click()
- If chkWordWrap.Value Then
- lblWelcome.WordWrap = True
- Else
- lblWelcome.WordWrap = False
- End If
- End Sub
-
- Sub optNone_Click()
- lblWelcome.BorderStyle = 0
- End Sub
-
- Sub optLine_Click()
- lblWelcome.BorderStyle = 1
- End Sub
-
- Sub ResetApplication_Click ()
- ' If the form is not loaded yet, then get it loaded and pop out of here.
- If hWnd == 0 Then
- LoadForm
- Exit Sub
- End If
-
- ' Setup Alignment default
- optCenter.Value = True
- optLeft.Value = False
- optRight.Value = False
-
- ' Setup Border style default
- optNone.Value = True
- optLine.Value = False
-
- ' Setup Word wrap default
- chkWordWrap.Value = 1
-
- ' Setup label defaults
- lblWelcome.Alignment = "Center"
- lblWelcome.BorderStyle = "None"
- lblWelcome.WordWrap = True
-
- End Sub
-
- End Type
-
- Begin Code
- ' Reconstruction commands for object: LabelMasterForm
- '
- With LabelMasterForm
- .Caption := "Label Demonstration"
- .Move(3930, 2055, 6255, 3675)
- .SampleDir := "W:\examples\label\"
- .SampleName := "label"
- With .Label1
- .Caption := "1. Alignment"
- .ForeColor := 13107200
- .Move(300, 300, 1350, 300)
- End With 'LabelMasterForm.Label1
- With .optLeft
- .Caption := "Left"
- .Move(450, 750, 1200, 300)
- .TabStop := True
- .TabGroup := True
- .Value := True
- End With 'LabelMasterForm.optLeft
- With .optCenter
- .Caption := "Center"
- .Move(450, 1050, 1200, 300)
- End With 'LabelMasterForm.optCenter
- With .optRight
- .Caption := "Right"
- .Move(450, 1350, 1200, 300)
- End With 'LabelMasterForm.optRight
- With .Label2
- .Caption := "2. Border Style"
- .ForeColor := 13107200
- .Move(2250, 300, 1800, 300)
- End With 'LabelMasterForm.Label2
- With .optNone
- .Caption := "None"
- .Move(2400, 750, 1350, 300)
- .TabStop := True
- .TabGroup := True
- .Value := True
- End With 'LabelMasterForm.optNone
- With .optLine
- .Caption := "Line"
- .Move(2400, 1050, 1350, 300)
- End With 'LabelMasterForm.optLine
- With .Label3
- .Caption := "3. Word Wrap"
- .ForeColor := 13107200
- .Move(4350, 300, 1650, 300)
- End With 'LabelMasterForm.Label3
- With .chkWordWrap
- .Caption := "On"
- .Move(4500, 750, 1050, 300)
- .TabGroup := True
- End With 'LabelMasterForm.chkWordWrap
- With .lblWelcome
- .Caption := "Welcome to the Label Demonstration!"
- .ForeColor := 0
- .Font := LabelMasterForm.FontWelcome
- .Move(300, 1950, 5250, 750)
- .WordWrap := False
- End With 'LabelMasterForm.lblWelcome
- With .FontWelcome
- .FaceName := "vtspecl_132_dblhiwide"
- .Size := 18
- .Bold := False
- End With 'LabelMasterForm.FontWelcome
- With .helpfile
- .FileName := "W:\examples\label\label.hlp"
- End With 'LabelMasterForm.helpfile
- End With 'LabelMasterForm
- End Code
-