home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form AboutBox
- BorderStyle = 3 'Fixed Double
- Caption = "About VB JigSaw"
- ClientHeight = 2250
- ClientLeft = 1365
- ClientTop = 1425
- ClientWidth = 5640
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 2655
- Icon = 0
- Left = 1305
- LinkMode = 1 'Source
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2250
- ScaleWidth = 5640
- Top = 1080
- Width = 5760
- Begin CommandButton Cmd_OK
- Caption = "OK"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 360
- Left = 4350
- TabIndex = 0
- Top = 1695
- Width = 1035
- End
- Begin PictureBox Picture1
- Height = 30
- Left = 990
- ScaleHeight = 0
- ScaleWidth = 4350
- TabIndex = 5
- Top = 1320
- Width = 4380
- End
- Begin PictureBox Pic_ApplicationIcon
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 480
- Left = 255
- Picture = ABOUTBOX.FRX:0000
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 4
- Top = 150
- Width = 480
- End
- Begin Label Lbl_InfoValues
- Height = 600
- Left = 2910
- TabIndex = 7
- Top = 1440
- Width = 1410
- End
- Begin Label Lbl_Info
- Height = 600
- Left = 1005
- TabIndex = 6
- Top = 1440
- Width = 1875
- End
- Begin Label Lbl_Microsoft
- Caption = "Microsoft Visual Basic for Windows 3.00"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 240
- Left = 990
- TabIndex = 3
- Top = 1005
- Width = 4365
- End
- Begin Label Lbl_Version
- Caption = "Version 1.00"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 240
- Left = 990
- TabIndex = 2
- Top = 735
- Width = 1470
- End
- Begin Label Lbl_IconWorks
- Caption = "VB JigSaw"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 18
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 450
- Left = 990
- TabIndex = 1
- Top = 165
- Width = 1920
- End
- DefInt A-Z
- Declare Function GetWinFlags Lib "Kernel" () As Long
- Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags) As Long
- Const WF_STANDARD = &H10
- Const WF_ENHANCED = &H20
- Const WF_80x87 = &H400
- Sub Cmd_OK_Click ()
- Unload AboutBox
- End Sub
- Sub Form_Load ()
- Dim WinFlags As Long
- Dim Mode As String, Processor As String
- ' Dialog Boxes should only have Move and Close items
- ' in their System menus', so remove the others.
- '
- Remove_Items_From_Sysmenu AboutBox
- ' Center the AboutBox on the screen
- '
- Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
- ' Get current Windows configuration
- '
- WinFlags = GetWinFlags()
- ' Display configuration values in Lbl_Info.Caption and Lbl_InfoValues.Caption
- ' (NOTE: CRLF variable causes a line break in a labels caption)
- '
- If WinFlags And WF_ENHANCED Then Mode = "386 Enhanced Mode" Else Mode = "Standard Mode"
- Lbl_Info.Caption = Mode + Chr$(13) + Chr$(10) + "Free Memory:" + Chr$(13) + Chr$(10) + "Math Co-processor:"
- If WinFlags And WF_80x87 Then Processor = "Present" Else Processor = "None"
- Lbl_InfoValues.Caption = Chr$(13) + Chr$(10) + Format$(GetFreeSpace(0) \ 1024) + " KB" + Chr$(13) + Chr$(10) + Processor
- End Sub
-