home *** CD-ROM | disk | FTP | other *** search
/ CICA 1994 September / CICA_Shareware_for_Windows_Walnut_Creek_September_1994.iso / win3 / winsock / gcp_24.exe / ABOUT.FR_ / ABOUT.FR
Text File  |  1994-03-06  |  6KB  |  197 lines

  1. VERSION 2.00
  2. Begin Form frmAbout 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "About VT-220 for Workgroups"
  6.    ClientHeight    =   3075
  7.    ClientLeft      =   2910
  8.    ClientTop       =   2205
  9.    ClientWidth     =   6165
  10.    ClipControls    =   0   'False
  11.    ControlBox      =   0   'False
  12.    Height          =   3450
  13.    Left            =   2865
  14.    LinkTopic       =   "Form1"
  15.    MaxButton       =   0   'False
  16.    MinButton       =   0   'False
  17.    ScaleHeight     =   3075
  18.    ScaleWidth      =   6165
  19.    Top             =   1875
  20.    Width           =   6255
  21.    Begin PictureBox Picture1 
  22.       AutoSize        =   -1  'True
  23.       Height          =   810
  24.       Left            =   4140
  25.       Picture         =   ABOUT.FRX:0000
  26.       ScaleHeight     =   780
  27.       ScaleWidth      =   1710
  28.       TabIndex        =   12
  29.       Top             =   300
  30.       Width           =   1740
  31.    End
  32.    Begin PictureBox picIcon 
  33.       AutoSize        =   -1  'True
  34.       BackColor       =   &H00C0C0C0&
  35.       BorderStyle     =   0  'None
  36.       Height          =   480
  37.       Left            =   420
  38.       Picture         =   ABOUT.FRX:0CAA
  39.       ScaleHeight     =   480
  40.       ScaleWidth      =   480
  41.       TabIndex        =   0
  42.       Top             =   300
  43.       Width           =   480
  44.    End
  45.    Begin Label Label2 
  46.       BackStyle       =   0  'Transparent
  47.       Caption         =   "(315) 841-8106"
  48.       Height          =   255
  49.       Left            =   1320
  50.       TabIndex        =   3
  51.       Top             =   1200
  52.       Width           =   1935
  53.       WordWrap        =   -1  'True
  54.    End
  55.    Begin Label Label1 
  56.       BackStyle       =   0  'Transparent
  57.       Caption         =   "Dart Communications"
  58.       Height          =   255
  59.       Left            =   1320
  60.       TabIndex        =   4
  61.       Top             =   960
  62.       Width           =   1815
  63.       WordWrap        =   -1  'True
  64.    End
  65.    Begin Label lblMath 
  66.       BackStyle       =   0  'Transparent
  67.       Caption         =   "Unknown"
  68.       Height          =   255
  69.       Left            =   3600
  70.       TabIndex        =   11
  71.       Top             =   2760
  72.       Width           =   2295
  73.    End
  74.    Begin Label lblMemory 
  75.       BackStyle       =   0  'Transparent
  76.       Caption         =   "Unknown KB Free"
  77.       Height          =   255
  78.       Left            =   3600
  79.       TabIndex        =   10
  80.       Top             =   2520
  81.       Width           =   2295
  82.    End
  83.    Begin Label Label9 
  84.       BackStyle       =   0  'Transparent
  85.       Caption         =   "Math Co-processor:"
  86.       Height          =   255
  87.       Left            =   1320
  88.       TabIndex        =   9
  89.       Top             =   2760
  90.       Width           =   2175
  91.    End
  92.    Begin Label Label8 
  93.       BackStyle       =   0  'Transparent
  94.       Caption         =   "Memory:"
  95.       Height          =   255
  96.       Left            =   1320
  97.       TabIndex        =   8
  98.       Top             =   2520
  99.       Width           =   2175
  100.    End
  101.    Begin Label lblCPU 
  102.       BackStyle       =   0  'Transparent
  103.       Caption         =   "x86 Unknown Mode"
  104.       Height          =   255
  105.       Left            =   1320
  106.       TabIndex        =   7
  107.       Top             =   2280
  108.       Width           =   3495
  109.    End
  110.    Begin Line Line1 
  111.       BorderWidth     =   2
  112.       X1              =   1320
  113.       X2              =   5880
  114.       Y1              =   2160
  115.       Y2              =   2160
  116.    End
  117.    Begin Label lblSerialNumber 
  118.       BackStyle       =   0  'Transparent
  119.       Caption         =   "1.00"
  120.       Height          =   255
  121.       Left            =   2880
  122.       TabIndex        =   6
  123.       Top             =   1920
  124.       Width           =   2055
  125.    End
  126.    Begin Label lblSerialNumberLabel 
  127.       BackStyle       =   0  'Transparent
  128.       Caption         =   "Version Number:"
  129.       Height          =   255
  130.       Left            =   1320
  131.       TabIndex        =   5
  132.       Top             =   1920
  133.       Width           =   1455
  134.    End
  135.    Begin Label lblCredits 
  136.       BackStyle       =   0  'Transparent
  137.       Caption         =   "By Michael Baldwin"
  138.       Height          =   255
  139.       Left            =   1320
  140.       TabIndex        =   2
  141.       Top             =   480
  142.       Width           =   2235
  143.       WordWrap        =   -1  'True
  144.    End
  145.    Begin Label lblTitle 
  146.       BackStyle       =   0  'Transparent
  147.       Caption         =   "VT-220 for Workgroups"
  148.       Height          =   255
  149.       Left            =   1320
  150.       TabIndex        =   1
  151.       Top             =   240
  152.       Width           =   2295
  153.    End
  154. End
  155. Declare Function GetWinFlags Lib "Kernel" () As Long
  156. Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags As Integer) As Long
  157.  
  158. Sub Form_Click ()
  159.     Unload Me
  160. End Sub
  161.  
  162. Sub Form_Load ()
  163.     Me.Top = (Screen.Height - Me.Height) / 2
  164.     Me.Left = (Screen.Width - Me.Width) / 2
  165.     UpdateCPUInfo
  166. End Sub
  167.  
  168. Sub Picture1_Click ()
  169.     Unload Me
  170. End Sub
  171.  
  172. Sub UpdateCPUInfo ()
  173.     frmAbout.picIcon.Picture = frmMDI.Icon
  174.     Dim WinFlags As Long
  175.     WinFlags = GetWinFlags()
  176.  
  177.     If WinFlags And &H2 Then CPU$ = "286 "
  178.     If WinFlags And &H4 Then CPU$ = "386 "
  179.     If WinFlags And &H8 Then CPU$ = "486 "
  180.     If WinFlags And &H20 Then
  181.         CPU$ = CPU$ + "Enhanced Mode"
  182.     Else
  183.         CPU$ = CPU$ + "Standard Mode"
  184.     End If
  185.     frmAbout.lblCPU.Caption = CPU$
  186.  
  187.     frmAbout.lblMemory.Caption = Format$(GetFreeSpace(0) \ 1000) & " KB Free"
  188.  
  189.     If WinFlags And &H400 Then
  190.         frmAbout.lblMath.Caption = "Present"
  191.     Else
  192.         frmAbout.lblMath.Caption = "None"
  193.     End If
  194.  
  195. End Sub
  196.  
  197.