home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form CancelFont
- BorderStyle = 1 'Fixed Single
- ClipControls = 0 'False
- ControlBox = 0 'False
- Height = 2475
- Left = 1695
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2070
- ScaleWidth = 3525
- Top = 2625
- Width = 3645
- Begin PictureBox picProgress
- Height = 375
- Left = 240
- ScaleHeight = 345
- ScaleWidth = 2985
- TabIndex = 2
- Top = 840
- Width = 3015
- End
- Begin CommandButton cmdCancel
- Caption = "Cancel"
- Height = 375
- Left = 1080
- TabIndex = 1
- Top = 1440
- Width = 1335
- End
- Begin Label lblCancelMsg
- Caption = "Please wait while TimeCard checks for available fonts..."
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 3135
- End
- Option Explicit
- Sub cmdCancel_Click ()
- ' Remove font dialog
- Unload FontDialog
- ' Remove cancel dialog
- Unload CancelFont
- End Sub
- Sub Form_Load ()
- ' Position form in middle of screen
- CancelFont.Left = (Screen.Width - CancelFont.Width) / 2
- CancelFont.Top = (Screen.Height - CancelFont.Height) / 2
- ' Set scale width of progress bar based on # of matches
- picProgress.ScaleWidth = Printer.FontCount * Screen.FontCount
- End Sub
-