home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmSample1
- BorderStyle = 3 'Fixed Dialog
- Caption = "Sample 1 - Using Live Number In a Setup Application"
- ClientHeight = 3135
- ClientLeft = 3510
- ClientTop = 5295
- ClientWidth = 6060
- ControlBox = 0 'False
- Height = 3540
- Icon = "Sample1.frx":0000
- Left = 3450
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3135
- ScaleWidth = 6060
- ShowInTaskbar = 0 'False
- Top = 4950
- Width = 6180
- Begin VB.Timer Timer1
- Enabled = 0 'False
- Interval = 500
- Left = 5580
- Top = 1710
- End
- Begin VB.CommandButton cmdStart
- Caption = "&Start"
- Default = -1 'True
- Height = 375
- Left = 4995
- TabIndex = 4
- Top = 2295
- Width = 1005
- End
- Begin VB.CommandButton cmdExit
- Caption = "&Exit"
- Enabled = 0 'False
- Height = 375
- Left = 4995
- TabIndex = 3
- Top = 2700
- Width = 1005
- End
- Begin LiveLabelsLib.LiveNumber LiveNumber1
- Height = 600
- Left = 90
- TabIndex = 5
- Top = 2430
- Width = 2355
- _Version = 65536
- _ExtentX = 4154
- _ExtentY = 1058
- _StockProps = 41
- BackColor = 0
- DigitCount = 4
- BeginProperty DigitFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 20.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin VB.Label lblTitle
- AutoSize = -1 'True
- Caption = "Files Copied"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 14.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 345
- Left = 90
- TabIndex = 2
- Top = 2070
- Width = 1950
- End
- Begin VB.Label Label2
- Caption = "Click the START button to start the demo. This is just a demo, no files are actually copied."
- ForeColor = &H00800000&
- Height = 600
- Left = 90
- TabIndex = 1
- Top = 1080
- Width = 2985
- End
- Begin VB.Label Label1
- Caption = $"Sample1.frx":08CA
- Height = 645
- Left = 90
- TabIndex = 0
- Top = 135
- Width = 5100
- WordWrap = -1 'True
- End
- Attribute VB_Name = "frmSample1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdExit_Click()
- Unload Me
- End Sub
- Private Sub cmdStart_Click()
- cmdStart.Enabled = False
- cmdExit.Enabled = True
- Timer1.Enabled = True
- End Sub
- Private Sub Form_Load()
- LiveNumber1.DigitChangedSound = App.Path & "\" & "Tick.WAV"
- End Sub
- Private Sub Timer1_Timer()
- LiveNumber1.Add 1
- If (LiveNumber1.Value = 10) Then
- LiveNumber1.DigitBackColor = RGB(128, 0, 0)
- LiveNumber1.ForeColor = vbWhite
-
- lblTitle.Caption = "Done."
- Timer1.Enabled = False
- End If
- End Sub
-