home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
w3_scrn
/
vbfont.arj
/
FONTS.FRM
(
.txt
)
next >
Wrap
Visual Basic Form
|
1991-10-05
|
6KB
|
150 lines
Fonts
Fonts
Form1
Lst_Face
Lst_Size
Pict_Font
Opt_Norm
Normal
Cmd_Prt
&Print List
Opt_Ital
Italic
Cmd_End
Opt_Bold
Form_Click
@ Form_Load
Screen
FontCount
FontName
FontN
Fonts
Text1_Change1
Form_DblClickh
List1_Click
List1
Label1=
Caption
ListIndex
Salary
ShowMe
Picture1
Listw
FaceName
FontSize
List2Y
Size:
FSize
List2_Clickg
FaceSize
SizeLoad
FaceSizePicture1
Picture1_Click
Form_UnloadE
Cancel
Form_KeyDown
KeyCode
Shift
Command1_Clickx
Option1_Click
Command2_Click
AutoRedraw
Printer
Option1
Index
FontItalic
FALSE
Option2_Clickq
FontBold~
Option3_Click
Form_Resize
Width
Heigth'
Height
Header
Form1
MousePointer
Option3f
Value
Form_Paint.
CheckErrorE
Chesk
CheckZ
Lst_Face
Lst_Size
Op_Norm
Pict_Font
Lst_Size_Click
Cmd_Prt_Click
Cmd_End_Click
Lst_Face_Click
Opt_Ital_Click
Opt_Bold_Click
Opt_Norm_Click
Opt_Norm
FontView v1.0 by Charles K. Snider 10/91
Send any and all comments to: Compuserve 73730,1315
Declare variables
Form_Load
Center on screeno
Get list of screen fonts and add to list boxs
restore screen font to defaultd
select first item in list box
Add list of font sizes to list boxt
Select fourth item is list box%
Select normal font characteristic (TRUE)t
Form_Resize
Repaint picture when form is resized
Form_Click
Display "About Box"
Font Viewer by Charles Snider"
Compuserve 73730,1315"
Font Viewer v1.0
Form_Paint
Repaint picture box after covered by another window
This may also be accomplished by setting AutoDraw = Truen
Lst_Size_Click
Display font in selected size
Clear picure box
set variable to item chosen in list box
Change font size to one chosen
Display itt
Cmd_Prt_Click
Print routine
Set Error trap - go to sub CheckError if detected
Change mouse cursor to hourglass
Print headers
Available Screen Fonts
Get screen fonts and send list to printer
Restore font to default
Print number of available fonts
Number Of Fonts: "
End printing
restore cursor to default
avoid executing error handler if error occurs ("exit")
branch here if error occurs
display error message
Cmd_End_Click
End program
Lst_Face_Click
Display selected font
Clear picure boxe
Set variable to item chosen in list box
Change picture font to one chosen
Display it
Opt_Ital_Click
When Italic is chosen
Set font attribute to italic (TRUE) and turn "bold" off (FALSE)
Clear picture box
Display itu
Opt_Bold_Click
When Bold is chosen
Set font attribute to Bold (TRUE) and turn Italic off (FALSE)
Clear picture box
Display itu
Opt_Norm_Click
When Normal is chosen
Set font attribute to Normal by setting Bold and Italic to FALSE(0)
Clear picture box
Display itu