home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 21.ddi / REDTOP.FR_ / REDTOP.bin (.txt)
Encoding:
Visual Basic Form  |  1993-02-14  |  10.7 KB  |  354 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Red Top"
  5.    Height          =   2085
  6.    Icon            =   REDTOP.FRX:0000
  7.    Left            =   1710
  8.    LinkMode        =   1  'Source
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    ScaleHeight     =   1680
  12.    ScaleMode       =   0  'User
  13.    ScaleWidth      =   3180
  14.    Top             =   1095
  15.    Width           =   3300
  16.    Begin PictureBox Picture3 
  17.       AutoSize        =   -1  'True
  18.       Height          =   510
  19.       Index           =   17
  20.       Left            =   3690
  21.       Picture         =   REDTOP.FRX:0302
  22.       ScaleHeight     =   480
  23.       ScaleMode       =   0  'User
  24.       ScaleWidth      =   480
  25.       TabIndex        =   19
  26.       Top             =   4860
  27.       Visible         =   0   'False
  28.       Width           =   510
  29.    End
  30.    Begin PictureBox Picture3 
  31.       AutoSize        =   -1  'True
  32.       Height          =   510
  33.       Index           =   8
  34.       Left            =   3090
  35.       Picture         =   REDTOP.FRX:0604
  36.       ScaleHeight     =   480
  37.       ScaleMode       =   0  'User
  38.       ScaleWidth      =   480
  39.       TabIndex        =   10
  40.       Top             =   4860
  41.       Visible         =   0   'False
  42.       Width           =   510
  43.    End
  44.    Begin PictureBox Picture3 
  45.       AutoSize        =   -1  'True
  46.       Height          =   510
  47.       Index           =   16
  48.       Left            =   3690
  49.       Picture         =   REDTOP.FRX:0906
  50.       ScaleHeight     =   480
  51.       ScaleMode       =   0  'User
  52.       ScaleWidth      =   480
  53.       TabIndex        =   18
  54.       Top             =   4260
  55.       Visible         =   0   'False
  56.       Width           =   510
  57.    End
  58.    Begin PictureBox Picture3 
  59.       AutoSize        =   -1  'True
  60.       Height          =   510
  61.       Index           =   7
  62.       Left            =   3090
  63.       Picture         =   REDTOP.FRX:0C08
  64.       ScaleHeight     =   480
  65.       ScaleMode       =   0  'User
  66.       ScaleWidth      =   480
  67.       TabIndex        =   9
  68.       Top             =   4260
  69.       Visible         =   0   'False
  70.       Width           =   510
  71.    End
  72.    Begin PictureBox Picture3 
  73.       AutoSize        =   -1  'True
  74.       Height          =   510
  75.       Index           =   15
  76.       Left            =   3690
  77.       Picture         =   REDTOP.FRX:0F0A
  78.       ScaleHeight     =   480
  79.       ScaleMode       =   0  'User
  80.       ScaleWidth      =   480
  81.       TabIndex        =   17
  82.       Top             =   3660
  83.       Visible         =   0   'False
  84.       Width           =   510
  85.    End
  86.    Begin PictureBox Picture3 
  87.       AutoSize        =   -1  'True
  88.       Height          =   510
  89.       Index           =   6
  90.       Left            =   3090
  91.       Picture         =   REDTOP.FRX:120C
  92.       ScaleHeight     =   480
  93.       ScaleMode       =   0  'User
  94.       ScaleWidth      =   480
  95.       TabIndex        =   8
  96.       Top             =   3660
  97.       Visible         =   0   'False
  98.       Width           =   510
  99.    End
  100.    Begin PictureBox Picture3 
  101.       AutoSize        =   -1  'True
  102.       Height          =   510
  103.       Index           =   14
  104.       Left            =   3690
  105.       Picture         =   REDTOP.FRX:150E
  106.       ScaleHeight     =   480
  107.       ScaleMode       =   0  'User
  108.       ScaleWidth      =   480
  109.       TabIndex        =   16
  110.       Top             =   3060
  111.       Visible         =   0   'False
  112.       Width           =   510
  113.    End
  114.    Begin PictureBox Picture3 
  115.       AutoSize        =   -1  'True
  116.       Height          =   510
  117.       Index           =   5
  118.       Left            =   3090
  119.       Picture         =   REDTOP.FRX:1810
  120.       ScaleHeight     =   480
  121.       ScaleMode       =   0  'User
  122.       ScaleWidth      =   480
  123.       TabIndex        =   7
  124.       Top             =   3060
  125.       Visible         =   0   'False
  126.       Width           =   510
  127.    End
  128.    Begin PictureBox Picture3 
  129.       AutoSize        =   -1  'True
  130.       Height          =   510
  131.       Index           =   13
  132.       Left            =   3690
  133.       Picture         =   REDTOP.FRX:1B12
  134.       ScaleHeight     =   480
  135.       ScaleMode       =   0  'User
  136.       ScaleWidth      =   480
  137.       TabIndex        =   15
  138.       Top             =   2460
  139.       Visible         =   0   'False
  140.       Width           =   510
  141.    End
  142.    Begin PictureBox Picture3 
  143.       AutoSize        =   -1  'True
  144.       Height          =   510
  145.       Index           =   4
  146.       Left            =   3090
  147.       Picture         =   REDTOP.FRX:1E14
  148.       ScaleHeight     =   480
  149.       ScaleMode       =   0  'User
  150.       ScaleWidth      =   480
  151.       TabIndex        =   6
  152.       Top             =   2460
  153.       Visible         =   0   'False
  154.       Width           =   510
  155.    End
  156.    Begin PictureBox Picture3 
  157.       AutoSize        =   -1  'True
  158.       Height          =   510
  159.       Index           =   12
  160.       Left            =   3690
  161.       Picture         =   REDTOP.FRX:2116
  162.       ScaleHeight     =   480
  163.       ScaleMode       =   0  'User
  164.       ScaleWidth      =   480
  165.       TabIndex        =   14
  166.       Top             =   1860
  167.       Visible         =   0   'False
  168.       Width           =   510
  169.    End
  170.    Begin PictureBox Picture3 
  171.       AutoSize        =   -1  'True
  172.       Height          =   510
  173.       Index           =   3
  174.       Left            =   3090
  175.       Picture         =   REDTOP.FRX:2418
  176.       ScaleHeight     =   480
  177.       ScaleMode       =   0  'User
  178.       ScaleWidth      =   480
  179.       TabIndex        =   5
  180.       Top             =   1860
  181.       Visible         =   0   'False
  182.       Width           =   510
  183.    End
  184.    Begin PictureClip PicClip1 
  185.       Cols            =   6
  186.       Location        =   "5940,2745,1560,-2970"
  187.       Picture         =   REDTOP.FRX:271A
  188.       Rows            =   3
  189.    End
  190.    Begin PictureBox Picture3 
  191.       AutoSize        =   -1  'True
  192.       Height          =   510
  193.       Index           =   11
  194.       Left            =   3690
  195.       Picture         =   REDTOP.FRX:B68C
  196.       ScaleHeight     =   480
  197.       ScaleMode       =   0  'User
  198.       ScaleWidth      =   480
  199.       TabIndex        =   13
  200.       Top             =   1260
  201.       Visible         =   0   'False
  202.       Width           =   510
  203.    End
  204.    Begin PictureBox Picture3 
  205.       AutoSize        =   -1  'True
  206.       Height          =   510
  207.       Index           =   2
  208.       Left            =   3090
  209.       Picture         =   REDTOP.FRX:B98E
  210.       ScaleHeight     =   480
  211.       ScaleMode       =   0  'User
  212.       ScaleWidth      =   480
  213.       TabIndex        =   4
  214.       Top             =   1260
  215.       Visible         =   0   'False
  216.       Width           =   510
  217.    End
  218.    Begin CommandButton onoff 
  219.       Caption         =   "spin"
  220.       Height          =   390
  221.       Left            =   1845
  222.       TabIndex        =   20
  223.       Top             =   1095
  224.       Width           =   1125
  225.    End
  226.    Begin CommandButton Command1 
  227.       Caption         =   "info"
  228.       Height          =   270
  229.       Left            =   1845
  230.       TabIndex        =   21
  231.       Top             =   780
  232.       Width           =   1125
  233.    End
  234.    Begin PictureBox Picture3 
  235.       AutoSize        =   -1  'True
  236.       Height          =   510
  237.       Index           =   10
  238.       Left            =   3690
  239.       Picture         =   REDTOP.FRX:BC90
  240.       ScaleHeight     =   480
  241.       ScaleMode       =   0  'User
  242.       ScaleWidth      =   480
  243.       TabIndex        =   12
  244.       Top             =   660
  245.       Visible         =   0   'False
  246.       Width           =   510
  247.    End
  248.    Begin PictureBox Picture3 
  249.       AutoSize        =   -1  'True
  250.       Height          =   510
  251.       Index           =   1
  252.       Left            =   3090
  253.       Picture         =   REDTOP.FRX:BF92
  254.       ScaleHeight     =   480
  255.       ScaleMode       =   0  'User
  256.       ScaleWidth      =   480
  257.       TabIndex        =   3
  258.       Top             =   660
  259.       Visible         =   0   'False
  260.       Width           =   510
  261.    End
  262.    Begin PictureBox Picture6 
  263.       BackColor       =   &H00408080&
  264.       ForeColor       =   &H00000000&
  265.       Height          =   1245
  266.       Left            =   225
  267.       ScaleHeight     =   1215
  268.       ScaleMode       =   0  'User
  269.       ScaleWidth      =   1320
  270.       TabIndex        =   0
  271.       Top             =   240
  272.       Width           =   1350
  273.       Begin PictureBox Picture1 
  274.          AutoSize        =   -1  'True
  275.          Height          =   945
  276.          Left            =   150
  277.          ScaleHeight     =   915
  278.          ScaleMode       =   0  'User
  279.          ScaleWidth      =   990
  280.          TabIndex        =   1
  281.          Top             =   135
  282.          Width           =   1020
  283.       End
  284.    End
  285.    Begin Timer Timer1 
  286.       Interval        =   1
  287.       Left            =   2235
  288.       Top             =   195
  289.    End
  290.    Begin PictureBox Picture3 
  291.       AutoSize        =   -1  'True
  292.       Height          =   510
  293.       Index           =   9
  294.       Left            =   3690
  295.       Picture         =   REDTOP.FRX:C294
  296.       ScaleHeight     =   480
  297.       ScaleMode       =   0  'User
  298.       ScaleWidth      =   480
  299.       TabIndex        =   11
  300.       Top             =   60
  301.       Visible         =   0   'False
  302.       Width           =   510
  303.    End
  304.    Begin PictureBox Picture3 
  305.       AutoSize        =   -1  'True
  306.       Height          =   510
  307.       Index           =   0
  308.       Left            =   3090
  309.       Picture         =   REDTOP.FRX:C596
  310.       ScaleHeight     =   480
  311.       ScaleMode       =   0  'User
  312.       ScaleWidth      =   480
  313.       TabIndex        =   2
  314.       Top             =   60
  315.       Visible         =   0   'False
  316.       Width           =   510
  317.    End
  318. Dim y As Integer
  319. Dim x As Integer
  320. Dim delay As Integer
  321. Dim toggle As Integer
  322. Dim flap As Integer
  323. Sub Command1_Click ()
  324.     infoform.Show   'load and show infoform
  325. End Sub
  326. Sub Form_Load ()
  327.     ' Use 3rd frame of sequence for initial "startup" frame
  328.     picture1.Picture = picClip1.GraphicCell(2)
  329.     y = 2
  330. End Sub
  331. Sub onoff_Click ()
  332.     If toggle = 0 Then
  333.         onoff.Caption = "stop"
  334.         toggle = 1
  335.     Else
  336.         onoff.Caption = "spin"
  337.         toggle = 0
  338.     End If
  339. End Sub
  340. Sub runtop ()
  341.     ' Advance animation one frame
  342.     y = y + 1: If y = 18 Then y = 0
  343.     picture1.Picture = picClip1.GraphicCell(y)
  344.     ' Icon animation:  This will only be evident when the
  345.     ' form is minimized.  .ICO files have been loaded into
  346.     ' the Picture3 array, rather than .BMP's.  This allows
  347.     ' the mask feature of the .ICO to be utilized, letting
  348.     ' the background behind the icon show through.
  349.     form1.Icon = picture3(y).Picture
  350. End Sub
  351. Sub Timer1_Timer ()
  352.     If toggle = 1 Then runtop
  353. End Sub
  354.