home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
code
/
network
/
ogmess
/
prnmsg.frm
< prev
next >
Wrap
Text File
|
1995-02-27
|
3KB
|
114 lines
VERSION 2.00
Begin Form PRNMSG
Caption = "Print Message"
ClientHeight = 2370
ClientLeft = 1245
ClientTop = 1605
ClientWidth = 7470
Height = 2895
Left = 1185
LinkMode = 1 'Source
LinkTopic = "Form1"
ScaleHeight = 2370
ScaleWidth = 7470
Top = 1140
Width = 7590
Begin CommandButton cancelcmd
Cancel = -1 'True
Caption = "&Cancel"
Height = 495
Left = 5280
TabIndex = 6
Top = 1560
Width = 1215
End
Begin PictureBox SamplePic
AutoRedraw = -1 'True
Height = 975
Left = 360
ScaleHeight = 945
ScaleWidth = 3945
TabIndex = 4
Top = 1080
Width = 3975
End
Begin CommandButton prntcmd
Caption = "&Print"
Default = -1 'True
Height = 495
Left = 5280
TabIndex = 5
Top = 960
Width = 1215
End
Begin ComboBox FntSize
Height = 300
Left = 5400
TabIndex = 3
Top = 360
Width = 1215
End
Begin ComboBox FntNames
Height = 300
Left = 1560
TabIndex = 0
Top = 360
Width = 2415
End
Begin Label Label2
AutoSize = -1 'True
Caption = "Font Size: "
Height = 195
Left = 4320
TabIndex = 2
Top = 360
Width = 930
End
Begin Label Label1
AutoSize = -1 'True
Caption = "Printer Fonts:"
Height = 195
Left = 240
TabIndex = 1
Top = 360
Width = 1155
End
End
Sub cancelcmd_Click ()
Unload prnmsg
End Sub
Sub FntNames_Click ()
If fntnames.listindex <> -1 Then
prnmsg.fntnames.text = prnmsg.fntnames.list(prnmsg.fntnames.listindex)
End If
size$ = fntsize.text
fnt$ = fntnames.text
Call disp_sample(fnt$, size$)
End Sub
Sub FntSize_Click ()
If fntsize.listindex <> -1 Then
fntsize.text = fntsize.list(fntsize.listindex)
End If
size$ = fntsize.text
fnt$ = fntnames.text
Call disp_sample(fnt$, size$)
End Sub
Sub prntcmd_Click ()
printer.fontname = fntnames.text
printer.fontsize = Val(fntsize.text)
prnstat.Show
printer.Print printstring
printer.EndDoc
Unload prnstat
Unload prnmsg
End Sub