home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form AboutBox
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "About FG Draw"
- ClientHeight = 2865
- ClientLeft = 1365
- ClientTop = 1425
- ClientWidth = 5640
- ClipControls = 0 'False
- ControlBox = 0 'False
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 3270
- HelpContextID = 57
- Icon = ABOUTBOX.FRX:0000
- Left = 1305
- LinkMode = 1 'Source
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2865
- ScaleWidth = 5640
- Top = 1080
- Width = 5760
- Begin PictureBox Pic_ApplicationIcon
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Height = 480
- HelpContextID = 58
- Left = 255
- Picture = ABOUTBOX.FRX:0302
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 4
- Top = 255
- Width = 480
- End
- Begin CommandButton Cmd_OK
- BackColor = &H00C0C0C0&
- Caption = "OK"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "System"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 360
- HelpContextID = 59
- Left = 4365
- TabIndex = 6
- Top = 2400
- Width = 1035
- End
- Begin Line lin_HorizontalLine1
- BorderWidth = 2
- X1 = 975
- X2 = 5010
- Y1 = 1965
- Y2 = 1965
- End
- Begin Label Lbl_IconWorks
- BackColor = &H00C0C0C0&
- Caption = "FG Draw"
- 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 = 270
- Width = 1920
- End
- Begin Label Lbl_Version
- BackColor = &H00C0C0C0&
- 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 = 840
- Width = 1470
- End
- Begin Label Lbl_Microsoft
- BackColor = &H00C0C0C0&
- Caption = "Written by Douglas Brown "
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 735
- Left = 990
- TabIndex = 3
- Top = 1110
- Width = 4365
- End
- Begin Label Lbl_Info
- BackColor = &H00C0C0C0&
- Height = 600
- Left = 1020
- TabIndex = 5
- Top = 2145
- Width = 1875
- End
- Begin Label Lbl_InfoValues
- BackColor = &H00C0C0C0&
- Height = 600
- Left = 2925
- TabIndex = 0
- Top = 2145
- Width = 1410
- End
- DefInt A-Z
- Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags) As Long
- Declare Function GetWinFlags Lib "Kernel" () 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()
- If WinFlags And WF_ENHANCED Then Mode = "386 Enhanced Mode" Else Mode = "Standard Mode"
- Lbl_Info.Caption = Mode + Chr$(13) + "Free Memory:" + Chr$(13) + "Math Co-processor:"
- If WinFlags And WF_80x87 Then Processor = "Present" Else Processor = "None"
- Lbl_InfoValues.Caption = Chr$(13) + Format$(GetFreeSpace(0) \ 1024) + " KB" + Chr$(13) + Processor
- Lbl_Microsoft = "Written by Douglas Brown - dmSoftware." & Chr$(13) & "Demonstrates various techniques in using the Custom Control."
- End Sub
-