home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / bp_6_93 / bonus / 3ctrls.exe / FLOOD.FRM < prev    next >
Text File  |  1993-10-05  |  9KB  |  269 lines

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