home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / 3ctrls / flood.frm < prev    next >
Text File  |  1994-04-01  |  9KB  |  264 lines

  1. VERSION 2.00
  2. Begin Form fFlood 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Automatic resizing and flooding"
  5.    ClientHeight    =   5040
  6.    ClientLeft      =   180
  7.    ClientTop       =   930
  8.    ClientWidth     =   8700
  9.    Height          =   5505
  10.    Left            =   90
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   5040
  13.    ScaleWidth      =   8700
  14.    Top             =   555
  15.    Width           =   8880
  16.    Begin VideoSoftElastic VSElastic1 
  17.       Align           =   5  'Fill Container
  18.       BevelOuter      =   1  'Raised
  19.       BevelOuterWidth =   1
  20.       Caption         =   "Nest Elastics that automatically resize without writting any code."
  21.       CaptionPos      =   4  'Center Center
  22.       FontBold        =   -1  'True
  23.       FontItalic      =   0   'False
  24.       FontName        =   "MS Sans Serif"
  25.       FontSize        =   13.5
  26.       FontStrikethru  =   0   'False
  27.       FontUnderline   =   0   'False
  28.       ForeColor       =   &H00FF0000&
  29.       Height          =   2835
  30.       Index           =   1
  31.       Left            =   600
  32.       TabIndex        =   18
  33.       Top             =   1095
  34.       Width           =   7545
  35.    End
  36.    Begin VideoSoftElastic Flood 
  37.       Align           =   1  'Align Top
  38.       BevelOuter      =   1  'Raised
  39.       BevelOuterWidth =   1
  40.       CaptionPos      =   4  'Center Center
  41.       FloodColor      =   &H0000FFFF&
  42.       FloodDirection  =   1  'Right
  43.       FloodPercent    =   25
  44.       Height          =   450
  45.       Index           =   0
  46.       Left            =   600
  47.       TabIndex        =   17
  48.       Top             =   645
  49.       Width           =   7545
  50.    End
  51.    Begin VideoSoftElastic StatusBar 
  52.       Align           =   2  'Align Bottom
  53.       AutoSizeChildren=   2  'Uneven Horizontal
  54.       BevelOuter      =   1  'Raised
  55.       BevelOuterWidth =   1
  56.       Height          =   645
  57.       Left            =   600
  58.       TabIndex        =   1
  59.       Top             =   3930
  60.       Width           =   7545
  61.       Begin VideoSoftElastic VSElastic3 
  62.          AutoSizeChildren=   1  'Even Horizontal
  63.          Height          =   465
  64.          Index           =   1
  65.          Left            =   5190
  66.          TabIndex        =   9
  67.          Top             =   90
  68.          Width           =   2265
  69.          Begin CommandButton Command1 
  70.             Caption         =   "B"
  71.             Height          =   285
  72.             Index           =   9
  73.             Left            =   1545
  74.             TabIndex        =   12
  75.             Top             =   90
  76.             Width           =   630
  77.          End
  78.          Begin CommandButton Command1 
  79.             Caption         =   "B"
  80.             Height          =   285
  81.             Index           =   8
  82.             Left            =   825
  83.             TabIndex        =   11
  84.             Top             =   90
  85.             Width           =   630
  86.          End
  87.          Begin CommandButton Command1 
  88.             Caption         =   "B"
  89.             Height          =   285
  90.             Index           =   7
  91.             Left            =   90
  92.             TabIndex        =   10
  93.             Top             =   90
  94.             Width           =   645
  95.          End
  96.       End
  97.       Begin VideoSoftElastic VSElastic2 
  98.          AutoSizeChildren=   1  'Even Horizontal
  99.          BevelOuterWidth =   0
  100.          Height          =   465
  101.          Index           =   1
  102.          Left            =   90
  103.          TabIndex        =   13
  104.          Top             =   90
  105.          Width           =   5010
  106.          Begin TextBox Text1 
  107.             FontBold        =   0   'False
  108.             FontItalic      =   0   'False
  109.             FontName        =   "MS Sans Serif"
  110.             FontSize        =   8.25
  111.             FontStrikethru  =   0   'False
  112.             FontUnderline   =   0   'False
  113.             Height          =   285
  114.             Index           =   2
  115.             Left            =   90
  116.             TabIndex        =   15
  117.             Text            =   "When the form is resized, check this text box and the B buttons."
  118.             Top             =   90
  119.             Width           =   4830
  120.          End
  121.       End
  122.    End
  123.    Begin VideoSoftElastic Flood 
  124.       Align           =   3  'Align Left
  125.       BevelOuter      =   1  'Raised
  126.       BevelOuterWidth =   1
  127.       CaptionPos      =   4  'Center Center
  128.       FloodColor      =   &H00FF00FF&
  129.       FloodDirection  =   3  'Up
  130.       FloodPercent    =   25
  131.       Height          =   3930
  132.       Index           =   2
  133.       Left            =   0
  134.       TabIndex        =   8
  135.       Top             =   645
  136.       Width           =   600
  137.    End
  138.    Begin VideoSoftElastic Flood 
  139.       Align           =   2  'Align Bottom
  140.       BevelOuter      =   1  'Raised
  141.       BevelOuterWidth =   1
  142.       CaptionPos      =   4  'Center Center
  143.       FloodColor      =   &H00FFFF00&
  144.       FloodDirection  =   2  'Left
  145.       FloodPercent    =   25
  146.       Height          =   465
  147.       Index           =   1
  148.       Left            =   0
  149.       TabIndex        =   16
  150.       Top             =   4575
  151.       Width           =   8145
  152.    End
  153.    Begin Timer Timer1 
  154.       Interval        =   1
  155.       Left            =   4095
  156.       Top             =   3600
  157.    End
  158.    Begin VideoSoftElastic Toolbar 
  159.       Align           =   1  'Align Top
  160.       AutoSizeChildren=   2  'Uneven Horizontal
  161.       BevelInner      =   7  'Shadow
  162.       BevelInnerWidth =   2
  163.       BevelOuter      =   1  'Raised
  164.       BevelOuterWidth =   1
  165.       Height          =   645
  166.       Left            =   0
  167.       TabIndex        =   2
  168.       Top             =   0
  169.       Width           =   8145
  170.       Begin VideoSoftElastic VSElastic2 
  171.          AutoSizeChildren=   1  'Even Horizontal
  172.          BevelOuterWidth =   0
  173.          Height          =   465
  174.          Index           =   0
  175.          Left            =   90
  176.          TabIndex        =   3
  177.          Top             =   90
  178.          Width           =   4950
  179.          Begin TextBox Text1 
  180.             FontBold        =   0   'False
  181.             FontItalic      =   0   'False
  182.             FontName        =   "MS Sans Serif"
  183.             FontSize        =   8.25
  184.             FontStrikethru  =   0   'False
  185.             FontUnderline   =   0   'False
  186.             Height          =   285
  187.             Index           =   1
  188.             Left            =   90
  189.             TabIndex        =   14
  190.             Text            =   "When the form is resized, check this text box and the A buttons."
  191.             Top             =   90
  192.             Width           =   4770
  193.          End
  194.       End
  195.       Begin VideoSoftElastic VSElastic3 
  196.          AutoSizeChildren=   1  'Even Horizontal
  197.          Height          =   465
  198.          Index           =   0
  199.          Left            =   5130
  200.          TabIndex        =   4
  201.          Top             =   90
  202.          Width           =   2925
  203.          Begin CommandButton Command1 
  204.             Caption         =   "A"
  205.             Height          =   285
  206.             Index           =   4
  207.             Left            =   90
  208.             TabIndex        =   7
  209.             Top             =   90
  210.             Width           =   855
  211.          End
  212.          Begin CommandButton Command1 
  213.             Caption         =   "A"
  214.             Height          =   285
  215.             Index           =   2
  216.             Left            =   1035
  217.             TabIndex        =   6
  218.             Top             =   90
  219.             Width           =   855
  220.          End
  221.          Begin CommandButton Command1 
  222.             Caption         =   "A"
  223.             Height          =   285
  224.             Index           =   0
  225.             Left            =   1980
  226.             TabIndex        =   5
  227.             Top             =   90
  228.             Width           =   855
  229.          End
  230.       End
  231.    End
  232.    Begin VideoSoftElastic Flood 
  233.       Align           =   4  'Align Right
  234.       BevelOuter      =   1  'Raised
  235.       BevelOuterWidth =   1
  236.       CaptionPos      =   4  'Center Center
  237.       FloodColor      =   &H0000FF00&
  238.       FloodDirection  =   4  'Down
  239.       FloodPercent    =   25
  240.       Height          =   5040
  241.       Index           =   3
  242.       Left            =   8145
  243.       TabIndex        =   0
  244.       Top             =   0
  245.       Width           =   555
  246.    End
  247. End
  248. Option Explicit
  249.  
  250. Sub Timer1_Timer ()
  251.   Dim j%
  252.   Static i%
  253.  
  254.   If i > 97 Then i = 0
  255.   i = i + 3
  256.  
  257.   For j = 0 To 3
  258.     flood(j).FloodPercent = i
  259.     flood(j).Caption = i & "%"
  260.   Next j
  261.  
  262. End Sub
  263.  
  264.