home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form AboutBox
- BorderStyle = 3 'Fixed Dialog
- Caption = "About AppCompanyName"
- ClientHeight = 4095
- ClientLeft = 1290
- ClientTop = 1485
- ClientWidth = 6450
- ClipControls = 0 'False
- ControlBox = 0 'False
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 4500
- Icon = "aboutbox.frx":0000
- Left = 1230
- LinkMode = 1 'Source
- LinkTopic = "About"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4095
- ScaleWidth = 6450
- Top = 1140
- Width = 6570
- Begin VB.PictureBox pic
- Appearance = 0 'Flat
- AutoRedraw = -1 'True
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- ClipControls = 0 'False
- ForeColor = &H80000008&
- Height = 480
- Left = 120
- Picture = "aboutbox.frx":030A
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 15
- Top = 135
- Width = 480
- End
- Begin VB.CommandButton cmdSysInfo
- Caption = "&System Info..."
- Height = 375
- Left = 4950
- TabIndex = 14
- Top = 600
- Visible = 0 'False
- Width = 1365
- End
- Begin VB.CommandButton cmdOk
- Caption = "&OK"
- Height = 375
- Left = 4950
- TabIndex = 0
- Top = 150
- Width = 1365
- End
- Begin VB.Line Lines
- BorderWidth = 2
- Index = 1
- X1 = 855
- X2 = 6350
- Y1 = 2250
- Y2 = 2250
- End
- Begin VB.Line Lines
- BorderWidth = 2
- Index = 0
- X1 = 885
- X2 = 6350
- Y1 = 2970
- Y2 = 2970
- End
- Begin VB.Label lbl
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "This product is licensed to:"
- Height = 195
- Index = 8
- Left = 855
- TabIndex = 13
- Top = 1215
- Width = 2325
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(13) - Free Resources"
- Height = 255
- Index = 13
- Left = 2685
- TabIndex = 11
- Top = 3705
- Width = 2250
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "System Resources:"
- Height = 255
- Index = 12
- Left = 855
- TabIndex = 9
- Top = 3705
- Width = 1815
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(11) - Free RAM"
- Height = 255
- Index = 11
- Left = 2685
- TabIndex = 10
- Top = 3435
- Width = 2295
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "Memory:"
- Height = 255
- Index = 10
- Left = 855
- TabIndex = 8
- Top = 3435
- Width = 1815
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(9) - Windows Mode"
- Height = 255
- Index = 9
- Left = 855
- TabIndex = 7
- Top = 3150
- Width = 3015
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(6) - Message"
- Height = 465
- Index = 6
- Left = 855
- TabIndex = 12
- Top = 2385
- Width = 5460
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(5) - Registration"
- Height = 195
- Index = 5
- Left = 855
- TabIndex = 6
- Top = 1980
- Width = 4725
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(4) - CompanyName"
- Height = 195
- Index = 4
- Left = 855
- TabIndex = 5
- Top = 1725
- Width = 4725
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(3) - UserName"
- Height = 195
- Index = 3
- Left = 855
- TabIndex = 4
- Top = 1470
- Width = 4725
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(2) - Copyright
- 1995 + AppCompanyName"
- Height = 255
- Index = 2
- Left = 855
- TabIndex = 3
- Top = 675
- Width = 4035
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(1) - Version + VersionNumber"
- Height = 255
- Index = 1
- Left = 855
- TabIndex = 2
- Top = 405
- Width = 3555
- End
- Begin VB.Label lbl
- BackStyle = 0 'Transparent
- Caption = "lbl(0) - AppName"
- Height = 255
- Index = 0
- Left = 855
- TabIndex = 1
- Top = 135
- Width = 3555
- End
- Attribute VB_Name = "AboutBox"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- '**************************************************************
- ' ABOUTBOX.FRM - This form contains a generic about dialog
- ' box which is accessed by the About class.
- ' You should never use this form directly.
- '**************************************************************
- Option Explicit
- '**************************************************************
- ' API calls for use by this form only.
- '**************************************************************
- #If Win32 Then
- Private Type MEMORYSTATUS
- dwLength As Long
- dwMemoryLoad As Long
- dwTotalPhys As Long
- dwAvailPhys As Long
- dwTotalPageFile As Long
- dwAvailPageFile As Long
- dwTotalVirtual As Long
- dwAvailVirtual As Long
- End Type
- Private Declare Sub GlobalMemoryStatus Lib "kernel32" _
- (lpBuffer As MEMORYSTATUS)
- #Else
- Private Declare Function GetFreeSpace Lib "Kernel" (ByVal _
- wFlags%) As Long
- Private Declare Function GetFreeSystemResources Lib "User" _
- (ByVal wSysResource%) As Integer
- Private Declare Function GetWinFlags Lib "Kernel" () As Long
- #End If
- '**************************************************************
- ' Form level variables for preserving the pointer, and creating
- ' and About object.
- '**************************************************************
- Private OrigPointer As Integer
- '**************************************************************
- ' Form Intialization
- '**************************************************************
- Private Sub Form_Load()
- #If Win32 Then
- Dim MemoryStat As MEMORYSTATUS
- #Else
- Const WF_ENHANCED = &H20
- Const GFSR_SYSTEMRESOURCES = &H0
- #End If
- '**********************************************************
- ' Remember the current pointer, and change it to an hrglass
- '**********************************************************
- OrigPointer = Screen.MousePointer
- Screen.MousePointer = vbHourglass
- '**********************************************************
- ' If this form isn't being displayed as a splash screen
- '**********************************************************
- If Not bSplashScreen Then
- '**********************************************************
- ' Set the visible property of the button based on the
- ' existances of msinfo.exe (from Microsoft).
- '**********************************************************
- #If Win32 Then
- cmdSysInfo.Visible = FileExists(GetWinDir(True) _
- & "msapps\msinfo\msinfo32.exe")
- #Else
- cmdSysInfo.Visible = FileExists(GetWinDir(True) _
- & "msapps\msinfo\msinfo.exe")
- #End If
- '**********************************************************
- ' NOTE: You CAN NOT distribute MSINFO.EXE, so this is the
- ' next best thing.
- '**********************************************************
- End If
- '**********************************************************
- ' Set the label to reflect the environment mode
- '**********************************************************
- #If Win32 Then
- lbl(9) = "Windows (32-bit)"
- #Else
- lbl(9) = IIf(GetWinFlags() And WF_ENHANCED, _
- "386 Enhanced Mode", "Standard Mode")
- #End If
- '**********************************************************
- ' Call the API, and format the responses
- '**********************************************************
- #If Win32 Then
- GlobalMemoryStatus MemoryStat
- lbl(10) = "Physical Memory"
- lbl(11) = Format(MemoryStat.dwTotalPhys \ 1024, "###,###,##0") & " KB"
- lbl(12) = "Memory Load"
- lbl(13) = Format(MemoryStat.dwMemoryLoad) & "%"
- #Else
- lbl(11) = Format$(GetFreeSpace(0) \ 1024, "###,###,##0") & " KB"
- lbl(13) = Format$(GetFreeSystemResources(GFSR_SYSTEMRESOURCES)) & "%"
- #End If
- '**********************************************************
- ' Center the form
- '**********************************************************
- Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
- '**********************************************************
- ' Set the pointer to default, so the user doesn't see
- ' and hourglass on the about box.
- '**********************************************************
- Screen.MousePointer = vbDefault
- End Sub
- '**************************************************************
- ' Restore the pointer to its previous state, and free memory
- '**************************************************************
- Private Sub Form_Unload(Cancel As Integer)
- Screen.MousePointer = OrigPointer
- Set AboutBox = Nothing
- End Sub
- '**************************************************************
- ' Dismiss the dialog box, and run Form_Unload
- '**************************************************************
- Private Sub cmdOk_Click()
- Unload Me
- End Sub
- '**************************************************************
- ' If this button is visible, then this will work. Since we
- ' ignore the return value, you don't need parenthesis or
- ' variable = .
- '**************************************************************
- Private Sub cmdSysInfo_Click()
- #If Win32 Then
- Shell GetWinDir(True) & "msapps\msinfo\msinfo32.exe", _
- vbNormalFocus
- #Else
- Shell GetWinDir(True) & "msapps\msinfo\msinfo.exe"
- #End If
- End Sub
-