home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmAbout
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "About..."
- ClientHeight = 3150
- ClientLeft = 1395
- ClientTop = 1590
- ClientWidth = 6330
- Height = 3555
- HelpContextID = 2
- Left = 1335
- LinkTopic = "Form2"
- ScaleHeight = 210
- ScaleMode = 3 'Pixel
- ScaleWidth = 422
- Top = 1245
- Width = 6450
- Begin Timer Timer2
- Interval = 2500
- Left = 5100
- Top = 1110
- End
- Begin Timer Timer1
- Interval = 1
- Left = 5160
- Top = 1110
- End
- Begin CommandButton Command1
- Cancel = -1 'True
- Caption = "&OK"
- Default = -1 'True
- Height = 345
- Left = 5460
- TabIndex = 24
- Top = 240
- Width = 795
- End
- Begin Frame frainfo
- Caption = "System Information"
- Height = 285
- Index = 0
- Left = 0
- TabIndex = 23
- Top = 3690
- Width = 4635
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 14
- Left = 60
- TabIndex = 2
- Top = 2850
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 13
- Left = 1140
- TabIndex = 3
- Top = 2640
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 12
- Left = 1140
- TabIndex = 4
- Top = 2460
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 11
- Left = 1140
- TabIndex = 5
- Top = 1890
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 10
- Left = 1500
- TabIndex = 6
- Top = 3660
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 9
- Left = 1500
- TabIndex = 7
- Top = 4110
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 8
- Left = 1140
- TabIndex = 8
- Top = 2100
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 6
- Left = 1560
- TabIndex = 9
- Top = 4380
- Visible = 0 'False
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 5
- Left = 1500
- TabIndex = 10
- Top = 3840
- Visible = 0 'False
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 4
- Left = 180
- TabIndex = 11
- Top = 1830
- Visible = 0 'False
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 3
- Left = 180
- TabIndex = 12
- Top = 2070
- Visible = 0 'False
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 2
- Left = 180
- TabIndex = 13
- Top = 2340
- Visible = 0 'False
- Width = 585
- End
- Begin Label lblinfo
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label3"
- Height = 195
- Index = 1
- Left = 2460
- TabIndex = 14
- Top = 2430
- Visible = 0 'False
- Width = 585
- End
- Begin Label Line5
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Line5"
- Height = 195
- Left = 120
- TabIndex = 19
- Top = 1110
- Visible = 0 'False
- Width = 480
- End
- End
- Begin PictureBox Command3D1
- Height = 240
- Left = 1620
- ScaleHeight = 210
- ScaleWidth = 570
- TabIndex = 22
- Top = 3420
- Width = 600
- End
- Begin PictureBox PicClip1
- Height = 480
- Left = 0
- Picture = FRMABOUT.FRX:0000
- ScaleHeight = 450
- ScaleWidth = 1170
- TabIndex = 26
- Top = 0
- Width = 1200
- End
- Begin Shape Shape1
- Height = 3135
- Left = 0
- Top = 0
- Width = 6315
- End
- Begin Image Image1
- Height = 735
- Left = 60
- Picture = FRMABOUT.FRX:1F8A
- Stretch = -1 'True
- Top = 150
- Width = 855
- End
- Begin Label LblKeyboard
- BackColor = &H8000000F&
- BackStyle = 0 'Transparent
- Caption = "Label4"
- Height = 555
- Index = 0
- Left = 1560
- TabIndex = 15
- Top = 2820
- Visible = 0 'False
- Width = 3315
- End
- Begin Label Line1
- AutoSize = -1 'True
- BackColor = &H8000000F&
- BackStyle = 0 'Transparent
- Caption = "Line1"
- Height = 195
- Left = 1545
- TabIndex = 16
- Top = 1920
- Width = 480
- End
- Begin Label Line2
- AutoSize = -1 'True
- BackColor = &H8000000F&
- BackStyle = 0 'Transparent
- Caption = "Line2"
- Height = 195
- Left = 1545
- TabIndex = 17
- Top = 2100
- Width = 480
- End
- Begin Label Line3
- BackColor = &H8000000F&
- BackStyle = 0 'Transparent
- Caption = "Line3"
- Height = 195
- Left = 1545
- TabIndex = 18
- Top = 2280
- Width = 3555
- WordWrap = -1 'True
- End
- Begin Label Page
- AutoSize = -1 'True
- BackColor = &H8000000F&
- BackStyle = 0 'Transparent
- Caption = "1"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Small Fonts"
- FontSize = 5.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 120
- Left = 5340
- TabIndex = 20
- Top = 2910
- Width = 45
- End
- Begin Label LblKeyboard
- AutoSize = -1 'True
- BackColor = &H8000000F&
- Caption = "Label4"
- Height = 195
- Index = 1
- Left = 660
- TabIndex = 21
- Top = 3660
- Visible = 0 'False
- Width = 585
- End
- Begin Line Line6
- BorderColor = &H00800000&
- BorderWidth = 2
- X1 = 100
- X2 = 388
- Y1 = 124
- Y2 = 124
- End
- Begin Label Label2
- AutoSize = -1 'True
- BackColor = &H8000000F&
- BackStyle = 0 'Transparent
- Caption = "Copyright 1994
- Jason R. Noble"
- Height = 195
- Left = 1560
- TabIndex = 1
- Top = 540
- Width = 2805
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H8000000F&
- BackStyle = 0 'Transparent
- Caption = "AppTitle"
- Height = 195
- Left = 1560
- TabIndex = 0
- Top = 270
- Width = 720
- End
- Begin Label Line4
- AutoSize = -1 'True
- BackColor = &H8000000F&
- BackStyle = 0 'Transparent
- Caption = "Line4"
- Height = 195
- Left = 1545
- TabIndex = 25
- Top = 2460
- Width = 480
- End
- Sub Command1_Click ()
- Unload Me
- End Sub
- Sub command3d1_click ()
- Timer1.Enabled = True
- If line1.Caption = lblinfo(2).Caption Then page.Caption = "2"
- If line1.Caption = lblinfo(8).Caption Then page.Caption = "3"
- If line1.Caption = lblinfo(12).Caption Then page.Caption = "1"
- Select Case page.Caption
- Case "1"
- lblKeyboard(0).Visible = False
- frainfo(0).Caption = "Operating System"
- line1.Caption = lblinfo(2).Caption
- line2.Caption = lblinfo(5).Caption
- line3.Caption = lblinfo(4).Caption
- line4.Top = line3.Top + 200
- line4.Caption = lblinfo(5).Caption
- Case "2"
- line4.Top = line4.Top + 200
- line4.Caption = " "
- frainfo(0).Caption = "Video"
- line1.Caption = lblinfo(8).Caption
- line2.Caption = lblinfo(9).Caption
- line3.Caption = lblinfo(10).Caption
- Case "3"
- line3.Caption = lblinfo(11).Caption
- lblKeyboard(0).Top = line3.Top + 200
- lblKeyboard(0).Visible = True
- line4.Visible = True
- If GetSystemMetrics(SM_MOUSEPRESENT) Then
- lblinfo(11).Caption = "Mouse: " & GetSysini("boot.description", "mouse.drv")
- 'line4.Caption = lblinfo(11).Caption
- line4.Top = line4.Top - 400
- End If
- lblinfo(12).Caption = "Network: " & GetSysini("boot.description", "network.drv")
- lblinfo(13).Caption = "Language: " & GetSysini("boot.description", "language.dll")
- lblKeyboard(0).Caption = "Keyboard: " & GetSysini("boot.description", "Keyboard.typ")
- line1.Caption = lblinfo(12).Caption
- line2.Caption = lblinfo(13).Caption
- line3.Caption = lblKeyboard(0).Caption
- 'Line3.Caption = lblinfo(11).Caption
- End Select
- End Sub
- Sub fillsysinfo ()
- Dim WinFlags As Long, FreeSpace As Currency, FreeBlock As Currency, temp
- Dim i As Integer
- ' Operating System Info.
- WinFlags = GetWinFlags()
- If WinFlags And WF_ENHANCED Then
- lblinfo(3).Caption = "(Enhanced Mode)"
- Else
- lblinfo(3).Caption = "(Standard Mode)"
- End If
- lblinfo(2).Caption = "Microsoft Windows Version " & WindowsVersion() & " " & lblinfo(3).Caption
- lblinfo(4).Caption = "Disk Operating System: " & DosVersion()
- ' CPU Info.
- If WinFlags And WF_CPU486 Then
- lblinfo(5).Caption = "CPU: 486"
- ElseIf WinFlags And WF_CPU386 Then
- lblinfo(5).Caption = "CPU: 386"
- ElseIf WinFlags And WF_CPU286 Then
- lblinfo(5).Caption = "CPU: 286"
- End If
- If WinFlags And WF_80x87 Then
- lblinfo(5).Caption = lblinfo(5).Caption & " (with Math coprocessor)"
- End If
- ' Video info.
- lblinfo(8).Caption = "Video Driver: " & GetSysini("boot.description", "display.drv")
- lblinfo(9).Caption = "Resolution: " & Screen.Width \ Screen.TwipsPerPixelX & " x " & Screen.Height \ Screen.TwipsPerPixelY
- lblinfo(10).Caption = "Colors: " & DeviceColors((hDC))
- ' General info.
- If GetSystemMetrics(SM_MOUSEPRESENT) Then
- lblinfo(11).Caption = "Mouse: " & GetSysini("boot.description", "mouse.drv")
- Else
- lblinfo(11).Caption = "No mouse"
- End If
- lblinfo(12).Caption = "Network: " & GetSysini("boot.description", "network.drv")
- lblinfo(13).Caption = "Language: " & GetSysini("boot.description", "language.dll")
- lblinfo(14).Caption = "Keyboard: " & GetSysini("boot.description", "keyboard.typ")
- lblKeyboard(0).Caption = lblinfo(14).Caption
- End Sub
- Sub Form_Load ()
- centerform frmAbout
- Dim f As Integer
- fillsysinfo 'If Index <> 5 Then
- 'If VisibleFrame Is Nothing Then
- ' fraInfo(0).Visible = False
- ' Else
- ' VisibleFrame.Visible = False
- 'End If
- ' fraInfo(Index + 1).Visible = True
- ' Set VisibleFrame = fraInfo(Index + 1)
- 'mnuSysInfo(Index).Checked = Not mnuSysInfo(Index).Checked
- 'If mnuSysInfo(Index).Checked Then
- Dim R As Integer
- Const SYNC = 1
- 'R = sndPlaySound(ByVal CStr(WindowsDirectory() & "\" & ".wav"), SYNC)
- Dim WinPath As String, SoundFile As String, i As Integer
- WinPath = WindowsDirectory()
- SoundFile = Dir(WinPath & "\" & "*.wav")
- If WindowsVersion() > 3# Then
- If waveOutGetNumDevs() = 0 Then
- ' No wave output devices available.
- lblinfo(6).Caption = "No Wave audio device available"
- ElseIf SoundFile = "" Then
- ' No sound files in Windows directory
- Exit Sub
- Else
- lblinfo(6).Caption = Left(SoundFile, InStr(1, SoundFile, ".") - 1)
- lblinfo(6).Enabled = True
- i = 1
- Do
- SoundFile = Dir
- If SoundFile = "" Then Exit Do
- Load lblinfo(6)
- lblinfo(6).Caption = Left(SoundFile, InStr(1, SoundFile, ".") - 1)
- i = i + 1
- Loop
- End If
- Else
- ' Wave audio and "always on top" only available in Windows 3.1+
- ' Unload mnuSysInfo(5)
- ' Unload mnuSysInfo(4)
- End If
- Label1.Caption = App.Title
- line1.Caption = lblinfo(2).Caption
- line2.Caption = lblinfo(5).Caption
- line3.Caption = lblinfo(4).Caption
- line4.Top = line3.Top + 200
- line4.Caption = lblinfo(5).Caption
- 'Line2.Caption = lblinfo(6).Caption
- App.Title = "Tool Tips Framework"
- Label1.Caption = App.Title
- SetWindowPos frmAbout.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW
-
- SetWindowPos frmAbout.hWnd, HWND_TOPMOST, 0, 0, 1, 0, SWP_SHOWWINDOW
- 'line4.Caption = lblinfo(5).Caption
- 'Command3d1.Picture = picclip1.GraphicCell(4)
- 'Command3d2.Picture = picclip1.GraphicCell(5)
- End Sub
- Sub Timer2_Timer ()
- command3d1_click
- End Sub
-