home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / Notificati214300262009.psc / frmAbout.frm < prev    next >
Text File  |  2009-02-06  |  9KB  |  307 lines

  1. VERSION 5.00
  2. Begin VB.Form frmAbout 
  3.    Caption         =   " About"
  4.    ClientHeight    =   3435
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   2835
  8.    Icon            =   "frmAbout.frx":0000
  9.    LinkTopic       =   "Form6"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   3435
  13.    ScaleWidth      =   2835
  14.    Begin VB.CommandButton cmdOK 
  15.       BackColor       =   &H00E0E0E0&
  16.       Cancel          =   -1  'True
  17.       Caption         =   "OK"
  18.       Default         =   -1  'True
  19.       Height          =   345
  20.       Left            =   780
  21.       Style           =   1  'Graphical
  22.       TabIndex        =   0
  23.       Tag             =   "OK"
  24.       Top             =   2850
  25.       Width           =   1260
  26.    End
  27.    Begin VB.Label Label8 
  28.       Alignment       =   2  'Center
  29.       BackStyle       =   0  'Transparent
  30.       Caption         =   "Version"
  31.       Height          =   195
  32.       Left            =   60
  33.       TabIndex        =   10
  34.       Top             =   600
  35.       Width           =   2715
  36.    End
  37.    Begin VB.Image Image1 
  38.       Height          =   1500
  39.       Left            =   720
  40.       Picture         =   "frmAbout.frx":0D4A
  41.       Top             =   3540
  42.       Width           =   1500
  43.    End
  44.    Begin VB.Label Label7 
  45.       Alignment       =   2  'Center
  46.       BackStyle       =   0  'Transparent
  47.       Caption         =   "Copyright 2009"
  48.       Height          =   195
  49.       Left            =   60
  50.       TabIndex        =   9
  51.       Top             =   420
  52.       Width           =   2715
  53.    End
  54.    Begin VB.Line Line1 
  55.       BorderColor     =   &H00000000&
  56.       BorderWidth     =   2
  57.       Index           =   0
  58.       X1              =   120
  59.       X2              =   2700
  60.       Y1              =   2700
  61.       Y2              =   2700
  62.    End
  63.    Begin VB.Line Line1 
  64.       BorderColor     =   &H00808080&
  65.       BorderStyle     =   6  'Inside Solid
  66.       Index           =   1
  67.       X1              =   120
  68.       X2              =   2700
  69.       Y1              =   2700
  70.       Y2              =   2685
  71.    End
  72.    Begin VB.Label lblTitle 
  73.       Alignment       =   2  'Center
  74.       BackStyle       =   0  'Transparent
  75.       Caption         =   "HMcS Computers"
  76.       BeginProperty Font 
  77.          Name            =   "MS Sans Serif"
  78.          Size            =   8.25
  79.          Charset         =   0
  80.          Weight          =   700
  81.          Underline       =   0   'False
  82.          Italic          =   0   'False
  83.          Strikethrough   =   0   'False
  84.       EndProperty
  85.       ForeColor       =   &H00000000&
  86.       Height          =   240
  87.       Left            =   75
  88.       TabIndex        =   8
  89.       Tag             =   "Application Title"
  90.       Top             =   1020
  91.       Width           =   2655
  92.    End
  93.    Begin VB.Label lblDescription 
  94.       Alignment       =   2  'Center
  95.       BackStyle       =   0  'Transparent
  96.       Caption         =   "http://www.hmcscomputers.com"
  97.       ForeColor       =   &H000000C0&
  98.       Height          =   210
  99.       Left            =   60
  100.       TabIndex        =   7
  101.       Tag             =   "App Description"
  102.       Top             =   2340
  103.       Width           =   2670
  104.    End
  105.    Begin VB.Label Label1 
  106.       Alignment       =   2  'Center
  107.       BackStyle       =   0  'Transparent
  108.       Caption         =   "157 Washington Avenue"
  109.       Height          =   255
  110.       Left            =   60
  111.       TabIndex        =   6
  112.       Top             =   1380
  113.       Width           =   2655
  114.    End
  115.    Begin VB.Label Label2 
  116.       Alignment       =   2  'Center
  117.       BackStyle       =   0  'Transparent
  118.       Caption         =   "Vandergrift, Pa 15690"
  119.       Height          =   255
  120.       Left            =   75
  121.       TabIndex        =   5
  122.       Top             =   1560
  123.       Width           =   2655
  124.    End
  125.    Begin VB.Label Label3 
  126.       Alignment       =   2  'Center
  127.       BackStyle       =   0  'Transparent
  128.       Caption         =   "724 567-6328"
  129.       Height          =   255
  130.       Left            =   75
  131.       TabIndex        =   4
  132.       Top             =   1740
  133.       Width           =   2655
  134.    End
  135.    Begin VB.Label Label4 
  136.       Alignment       =   2  'Center
  137.       BackStyle       =   0  'Transparent
  138.       Caption         =   "Howard L. McHenry - Owner"
  139.       Height          =   255
  140.       Left            =   75
  141.       TabIndex        =   3
  142.       Top             =   1200
  143.       Width           =   2655
  144.    End
  145.    Begin VB.Label Label5 
  146.       Alignment       =   2  'Center
  147.       BackStyle       =   0  'Transparent
  148.       Caption         =   "- Notification Area Behavior -"
  149.       BeginProperty Font 
  150.          Name            =   "MS Sans Serif"
  151.          Size            =   8.25
  152.          Charset         =   0
  153.          Weight          =   700
  154.          Underline       =   0   'False
  155.          Italic          =   0   'False
  156.          Strikethrough   =   0   'False
  157.       EndProperty
  158.       Height          =   225
  159.       Left            =   60
  160.       TabIndex        =   2
  161.       Top             =   180
  162.       Width           =   2715
  163.    End
  164.    Begin VB.Label Label6 
  165.       Alignment       =   2  'Center
  166.       BackStyle       =   0  'Transparent
  167.       Caption         =   "avhlm@comcast.net"
  168.       ForeColor       =   &H000000C0&
  169.       Height          =   210
  170.       Left            =   60
  171.       TabIndex        =   1
  172.       Tag             =   "App Description"
  173.       Top             =   2100
  174.       Width           =   2670
  175.    End
  176. End
  177. Attribute VB_Name = "frmAbout"
  178. Attribute VB_GlobalNameSpace = False
  179. Attribute VB_Creatable = False
  180. Attribute VB_PredeclaredId = True
  181. Attribute VB_Exposed = False
  182. Option Explicit
  183.  
  184. Private Declare Function ShellExecute Lib "Shell32.dll" Alias "ShellExecuteA" ( _
  185.                          ByVal hWnd As Long, _
  186.                          ByVal lpOperation As String, _
  187.                          ByVal lpFile As String, ByVal _
  188.                          lpParameters As String, _
  189.                          ByVal lpDirectory As String, _
  190.                          ByVal nShowCmd As Long) As Long
  191.                 
  192. Private Const SW_SHOW = 1
  193.  
  194. Private Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" ( _
  195.                         ByVal hInstance As Long, _
  196.                         ByVal lpCursorName As Long) As Long
  197.  
  198. Private Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long
  199.  
  200. Private Const IDC_HAND = 32649&
  201. Private Const IDC_ARROW = 32512&
  202.  
  203. 'Enter here
  204. Private Sub Form_Load()
  205.    frmDemo.Enabled = False
  206.    Me.Top = frmDemo.Top + ((frmDemo.Height - Me.Height) / 2)
  207.    Me.Left = frmDemo.Left + (frmDemo.Width - Me.Width) / 2
  208.    
  209.    Label8 = "Version " & App.Major & "." & _
  210.                          App.Minor & "." & _
  211.                          App.Revision
  212.    
  213. End Sub
  214.  
  215. 'ControlBox
  216. Private Sub Form_Unload(Cancel As Integer)
  217.    frmDemo.Enabled = True
  218.    
  219. End Sub
  220.  
  221. 'OK button
  222. Private Sub cmdOK_Click()
  223.    Unload Me
  224.  
  225. End Sub
  226.  
  227. 'Email
  228. Private Sub Label6_Click()
  229.    Navigator "mailto:avhlm@comcast.net"
  230.    
  231. End Sub
  232.  
  233. 'HMcS website
  234. Private Sub lblDescription_Click()
  235.    Navigator "http://www.hmcscomputers.com"
  236.  
  237. End Sub
  238.  
  239. 'Navigate
  240. Private Sub Navigator(ByVal NavTo As String)
  241.    Dim hBrowse As Long
  242.    '
  243.    hBrowse = ShellExecute(0&, "open", NavTo, "", "", SW_SHOW)
  244.   
  245. End Sub
  246.  
  247. 'Marble backround for form
  248. Private Sub Form_Paint()
  249.    Dim x As Integer, Y As Integer
  250.    Dim ImgWidth As Integer
  251.    Dim ImgHeight As Integer
  252.    Dim FrmWidth As Integer
  253.    Dim FrmHeight As Integer
  254.    '
  255.    'Use Image1 or Picture1, as appropriate.
  256.    'Use one of the following PaintPicture methods:
  257.    ImgWidth = Image1.Width
  258.    ImgHeight = Image1.Height
  259.    FrmWidth = frmAbout.Width
  260.    FrmHeight = frmAbout.Height
  261.    
  262.    'tile entire form (Method 1)
  263.    For x = 0 To FrmWidth Step ImgWidth
  264.       For Y = 0 To FrmHeight Step ImgHeight
  265.          PaintPicture Image1, x, Y
  266.       Next Y
  267.    Next x
  268.    
  269.    'tile left side (Method 2)
  270.    'For Y = 0 To FrmHeight Step ImgHeight
  271.    '   PaintPicture Image1, 0, Y
  272.    'Next Y
  273.     
  274. End Sub
  275.  
  276. 'Mouse hand cursor
  277. Public Sub SetHandCur(Hand As Boolean)
  278.    If Hand = True Then
  279.       SetCursor LoadCursor(0, IDC_HAND)
  280.    Else
  281.       SetCursor LoadCursor(0, IDC_ARROW)
  282.    End If
  283.  
  284. End Sub
  285.  
  286. Private Sub Label6_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)
  287.    SetHandCur True
  288.    
  289. End Sub
  290. Private Sub Label6_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
  291.    SetHandCur True
  292.    
  293. End Sub
  294.  
  295. Private Sub lblDescription_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)
  296.    SetHandCur True
  297.    
  298. End Sub
  299. Private Sub lblDescription_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)
  300.    SetHandCur True
  301.    
  302. End Sub
  303.  
  304.  
  305.  
  306.  
  307.