home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmFontInfo
- Caption = "Font Information Viewer"
- ClientHeight = 4305
- ClientLeft = 825
- ClientTop = 1905
- ClientWidth = 7935
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 4710
- Left = 765
- LinkTopic = "Form1"
- ScaleHeight = 4305
- ScaleWidth = 7935
- Top = 1560
- Width = 8055
- Begin VB.OptionButton Option1
- Caption = "Show Font Information"
- Height = 315
- Index = 1
- Left = 2580
- TabIndex = 5
- Top = 3300
- Width = 2595
- End
- Begin VB.OptionButton Option1
- Caption = "List Tables"
- Height = 315
- Index = 0
- Left = 2580
- TabIndex = 4
- Top = 2940
- Value = -1 'True
- Width = 2595
- End
- Begin VB.ListBox List1
- Height = 2565
- Left = 2580
- TabIndex = 3
- Top = 300
- Width = 4995
- End
- Begin VB.FileListBox File1
- Height = 1980
- Left = 300
- Pattern = "*.ttf"
- TabIndex = 2
- Top = 1980
- Width = 2175
- End
- Begin VB.DirListBox Dir1
- Height = 1155
- Left = 300
- TabIndex = 1
- Top = 720
- Width = 2175
- End
- Begin VB.DriveListBox Drive1
- Height = 315
- Left = 300
- TabIndex = 0
- Top = 300
- Width = 2175
- End
- Attribute VB_Name = "frmFontInfo"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Dim CurrentOption%
- Private Sub Dir1_Change()
- file1.Path = Dir1.Path
- End Sub
- Private Sub Drive1_Change()
- Dir1.Path = Drive1.Drive
- End Sub
- Private Sub file1_Click()
- LoadFontInfo file1.Path & "\" & file1.filename, list1, CurrentOption
- End Sub
- Private Sub Form_Load()
- Dim d$, r&
- d$ = String$(255, 0)
- r& = GetWindowsDirectory(d$, 254)
- d$ = Left$(d$, r)
- If GetVersion() > 0 Then d$ = d$ & "\system" Else d$ = d$ & "\fonts"
- Dir1.Path = d$
- file1.ListIndex = 0
- End Sub
- Private Sub Option1_Click(Index As Integer)
- CurrentOption% = Index
- file1_Click
- End Sub
-