home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 5 Developer's Kit / vb5 dev kit.iso / dev / tick11b / ticker.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-08-14  |  3.1 KB  |  109 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Ticker sample"
  4.    ClientHeight    =   1845
  5.    ClientLeft      =   1575
  6.    ClientTop       =   1395
  7.    ClientWidth     =   6735
  8.    Height          =   2205
  9.    Left            =   1515
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   1845
  12.    ScaleWidth      =   6735
  13.    Top             =   1095
  14.    Width           =   6855
  15.    Begin VB.CommandButton Command1 
  16.       Caption         =   "&Apply"
  17.       Height          =   375
  18.       Left            =   5400
  19.       TabIndex        =   3
  20.       Top             =   1440
  21.       Width           =   1215
  22.    End
  23.    Begin VB.TextBox Text2 
  24.       Height          =   285
  25.       Left            =   5040
  26.       TabIndex        =   2
  27.       Top             =   960
  28.       Width           =   735
  29.    End
  30.    Begin VB.TextBox Text1 
  31.       Height          =   285
  32.       Left            =   5040
  33.       TabIndex        =   1
  34.       Top             =   600
  35.       Width           =   735
  36.    End
  37.    Begin VB.Label Label3 
  38.       Caption         =   "Double click the ticker !!!"
  39.       BeginProperty Font 
  40.          name            =   "Arial"
  41.          charset         =   0
  42.          weight          =   400
  43.          size            =   15.75
  44.          underline       =   0   'False
  45.          italic          =   0   'False
  46.          strikethrough   =   0   'False
  47.       EndProperty
  48.       Height          =   735
  49.       Left            =   120
  50.       TabIndex        =   6
  51.       Top             =   600
  52.       Width           =   3015
  53.    End
  54.    Begin VB.Label Label2 
  55.       Alignment       =   1  'Right Justify
  56.       Caption         =   "Smoothness:"
  57.       Height          =   255
  58.       Left            =   3600
  59.       TabIndex        =   5
  60.       Top             =   960
  61.       Width           =   1335
  62.    End
  63.    Begin VB.Label Label1 
  64.       Alignment       =   1  'Right Justify
  65.       Caption         =   "Speed:"
  66.       Height          =   255
  67.       Left            =   3600
  68.       TabIndex        =   4
  69.       Top             =   600
  70.       Width           =   1335
  71.    End
  72.    Begin TICKERLib.Ticker Ticker1 
  73.       Height          =   495
  74.       Left            =   0
  75.       TabIndex        =   0
  76.       Top             =   0
  77.       Width           =   6735
  78.       _Version        =   65536
  79.       _ExtentX        =   11880
  80.       _ExtentY        =   873
  81.       _StockProps     =   125
  82.       Text            =   $"ticker.frx":0000
  83.       ForeColor       =   65280
  84.       BackColor       =   0
  85.       ScrollWidth     =   1
  86.    End
  87. Attribute VB_Name = "Form1"
  88. Attribute VB_Creatable = False
  89. Attribute VB_Exposed = False
  90. Private Sub Command1_Click()
  91.     Ticker1.ScrollSpeed = Text1
  92.     Ticker1.Smoothness = Text2
  93. End Sub
  94. Private Sub Command2_Click()
  95.     Ticker1.Clear
  96. End Sub
  97. Private Sub Form_Load()
  98.     buff$ = "STOCK1" + vbTab + "6150" + vbCrLf + "STOCK2" + vbTab + "6150"
  99.     Ticker1.Text = buff$
  100.     Text1 = Ticker1.ScrollSpeed
  101.     Text2 = Ticker1.Smoothness
  102. End Sub
  103. Private Sub Form_Resize()
  104.     Ticker1.Width = Form1.Width
  105. End Sub
  106. Private Sub Label1_Click()
  107. Text1
  108. End Sub
  109.