home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form FontsFrm
- Caption = "Font Selection Made Easy"
- ClientHeight = 5700
- ClientLeft = 2070
- ClientTop = 1395
- ClientWidth = 5235
- Height = 6105
- Left = 2010
- LinkTopic = "Form1"
- ScaleHeight = 5700
- ScaleWidth = 5235
- Top = 1050
- Width = 5355
- Begin VB.PictureBox ItalicOn
- Height = 375
- Left = 5280
- Picture = "FontsFrm.frx":0000
- ScaleHeight = 315
- ScaleWidth = 315
- TabIndex = 6
- Top = 2520
- Visible = 0 'False
- Width = 375
- End
- Begin VB.PictureBox ItalicOff
- Height = 375
- Left = 5280
- Picture = "FontsFrm.frx":018A
- ScaleHeight = 315
- ScaleWidth = 315
- TabIndex = 5
- Top = 1920
- Visible = 0 'False
- Width = 375
- End
- Begin VB.PictureBox BoldOn
- Height = 375
- Left = 5280
- Picture = "FontsFrm.frx":0314
- ScaleHeight = 315
- ScaleWidth = 315
- TabIndex = 3
- Top = 1320
- Visible = 0 'False
- Width = 375
- End
- Begin VB.PictureBox BoldOff
- Height = 375
- Left = 5280
- Picture = "FontsFrm.frx":049E
- ScaleHeight = 315
- ScaleWidth = 315
- TabIndex = 2
- Top = 720
- Visible = 0 'False
- Width = 375
- End
- Begin PVButtonLib.PVButton ItalicToggle
- Height = 375
- Left = 4680
- TabIndex = 7
- Top = 120
- Width = 495
- _Version = 65541
- _ExtentX = 873
- _ExtentY = 661
- _StockProps = 70
- Caption = ""
- End
- Begin PVButtonLib.PVButton BoldToggle
- Height = 375
- Left = 4080
- TabIndex = 4
- Top = 120
- Width = 495
- _Version = 65541
- _ExtentX = 873
- _ExtentY = 661
- _StockProps = 70
- Caption = ""
- End
- Begin VB.Label Label1
- Caption = $"FontsFrm.frx":0628
- Height = 4695
- Left = 120
- TabIndex = 1
- Top = 840
- Width = 4935
- End
- Begin PVFontSelLib.PVFontSel FontSel1
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 3855
- _Version = 65536
- _ExtentX = 6800
- _ExtentY = 873
- _StockProps = 228
- End
- Attribute VB_Name = "FontsFrm"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Dim varBoldOn As Boolean
- Dim varItalicOn As Boolean
- Private Sub BoldToggle_Click()
- Rem toggle state of varBoldOn,
- Rem update the picture displayed,
- Rem repaint the font used by the label
- If (varBoldOn = True) Then
- varBoldOn = False
- BoldToggle.CustomPicture = boldoff.Picture
- varBoldOn = True
- BoldToggle.CustomPicture = BoldOn.Picture
- End If
- Label1.Font.Bold = varBoldOn
- End Sub
- Private Sub Command1_Click()
- End Sub
- Private Sub FontSel1_FontNameChange()
- Label1.Font.Name = FontSel1.GetFontName
- End Sub
- Private Sub FontSel1_PointSizeChange()
- Label1.Font.Size = FontSel1.GetPointSize
- End Sub
- Private Sub Form_Load()
- varBoldOn = Label1.Font.Bold
- If (varBoldOn = True) Then
- BoldToggle.CustomPicture = BoldOn.Picture
- BoldToggle.CustomPicture = boldoff.Picture
- End If
- varItalicOn = Label1.Font.Italic
- If (varItalicOn = True) Then
- ItalicToggle.CustomPicture = ItalicOn.Picture
- ItalicToggle.CustomPicture = italicoff.Picture
- End If
- FontSel1.SetFontName (Label1.Font.Name)
- FontSel1.SetPointSize (Label1.Font.Size)
- End Sub
- Private Sub ItalicToggle_Click()
- Rem toggle state of varItalicOn,
- Rem update the picture displayed,
- Rem repaint the font used by the label
- If (varItalicOn = True) Then
- varItalicOn = False
- ItalicToggle.CustomPicture = italicoff.Picture
- varItalicOn = True
- ItalicToggle.CustomPicture = ItalicOn.Picture
- End If
- Label1.Font.Italic = varItalicOn
- End Sub
-