home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / basic / library / vb / 3ctrls / flood.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1993-07-15  |  14.3 KB  |  428 lines

  1. VERSION 2.00
  2. Begin Form fFlood 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Automatic resizing and flooding"
  5.    ClientHeight    =   4965
  6.    ClientLeft      =   1230
  7.    ClientTop       =   1605
  8.    ClientWidth     =   8145
  9.    Height          =   5430
  10.    Left            =   1140
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   4965
  13.    ScaleWidth      =   8145
  14.    Top             =   1230
  15.    Width           =   8325
  16.    Begin VideoSoftElastic StatusBar 
  17.       Align           =   2  'Align Bottom
  18.       AutoSizeChildren=   2  'Uneven Horizontally
  19.       BackColor       =   &H00C0C0C0&
  20.       BevelInner      =   3  'Inset
  21.       BevelInnerWidth =   1
  22.       BevelOuter      =   2  'Raised Outlined
  23.       BevelOuterWidth =   2
  24.       BorderWidth     =   6
  25.       Caption         =   ""
  26.       CaptionPos      =   1  'Left Center
  27.       ChildSpacing    =   6
  28.       FloodColor      =   &H000000C0&
  29.       FloodDirection  =   0  'None
  30.       FloodPercent    =   0
  31.       Height          =   645
  32.       Left            =   0
  33.       Splitter        =   0  'No
  34.       TabIndex        =   1
  35.       Top             =   4320
  36.       Width           =   8145
  37.       Begin VideoSoftElastic VSElastic3 
  38.          Align           =   0  'None
  39.          AutoSizeChildren=   1  'Even Horizontally
  40.          BackColor       =   &H00C0C0C0&
  41.          BevelInner      =   3  'Inset
  42.          BevelInnerWidth =   1
  43.          BevelOuter      =   2  'Raised Outlined
  44.          BevelOuterWidth =   2
  45.          BorderWidth     =   6
  46.          Caption         =   ""
  47.          CaptionPos      =   1  'Left Center
  48.          ChildSpacing    =   6
  49.          FloodColor      =   &H000000C0&
  50.          FloodDirection  =   0  'None
  51.          FloodPercent    =   0
  52.          Height          =   465
  53.          Index           =   1
  54.          Left            =   5190
  55.          Splitter        =   0  'No
  56.          TabIndex        =   9
  57.          Top             =   90
  58.          Width           =   2865
  59.          Begin CommandButton Command1 
  60.             Caption         =   "B"
  61.             Height          =   285
  62.             Index           =   9
  63.             Left            =   1920
  64.             TabIndex        =   12
  65.             Top             =   90
  66.             Width           =   855
  67.          End
  68.          Begin CommandButton Command1 
  69.             Caption         =   "B"
  70.             Height          =   285
  71.             Index           =   8
  72.             Left            =   1005
  73.             TabIndex        =   11
  74.             Top             =   90
  75.             Width           =   825
  76.          End
  77.          Begin CommandButton Command1 
  78.             Caption         =   "B"
  79.             Height          =   285
  80.             Index           =   7
  81.             Left            =   90
  82.             TabIndex        =   10
  83.             Top             =   90
  84.             Width           =   825
  85.          End
  86.       End
  87.       Begin VideoSoftElastic VSElastic2 
  88.          Align           =   0  'None
  89.          AutoSizeChildren=   1  'Even Horizontally
  90.          BackColor       =   &H00C0C0C0&
  91.          BevelInner      =   3  'Inset
  92.          BevelInnerWidth =   1
  93.          BevelOuter      =   2  'Raised Outlined
  94.          BevelOuterWidth =   0
  95.          BorderWidth     =   6
  96.          Caption         =   ""
  97.          CaptionPos      =   1  'Left Center
  98.          ChildSpacing    =   6
  99.          FloodColor      =   &H000000C0&
  100.          FloodDirection  =   0  'None
  101.          FloodPercent    =   0
  102.          Height          =   465
  103.          Index           =   1
  104.          Left            =   90
  105.          Splitter        =   0  'No
  106.          TabIndex        =   13
  107.          Top             =   90
  108.          Width           =   5010
  109.          Begin TextBox Text1 
  110.             FontBold        =   0   'False
  111.             FontItalic      =   0   'False
  112.             FontName        =   "MS Sans Serif"
  113.             FontSize        =   8.25
  114.             FontStrikethru  =   0   'False
  115.             FontUnderline   =   0   'False
  116.             Height          =   285
  117.             Index           =   2
  118.             Left            =   90
  119.             TabIndex        =   15
  120.             Text            =   "When the form is resized, check this text box and the B buttons."
  121.             Top             =   90
  122.             Width           =   4830
  123.          End
  124.       End
  125.    End
  126.    Begin VideoSoftElastic Flood 
  127.       Align           =   0  'None
  128.       AutoSizeChildren=   0  'None
  129.       BackColor       =   &H00C0C0C0&
  130.       BevelInner      =   3  'Inset
  131.       BevelInnerWidth =   1
  132.       BevelOuter      =   2  'Raised Outlined
  133.       BevelOuterWidth =   2
  134.       BorderWidth     =   6
  135.       Caption         =   ""
  136.       CaptionPos      =   4  'Center Center
  137.       ChildSpacing    =   6
  138.       FloodColor      =   &H0000FF00&
  139.       FloodDirection  =   4  'Down
  140.       FloodPercent    =   0
  141.       Height          =   3255
  142.       Index           =   3
  143.       Left            =   3375
  144.       Splitter        =   0  'No
  145.       TabIndex        =   0
  146.       Top             =   855
  147.       Width           =   645
  148.    End
  149.    Begin VideoSoftElastic Flood 
  150.       Align           =   0  'None
  151.       AutoSizeChildren=   0  'None
  152.       BackColor       =   &H00C0C0C0&
  153.       BevelInner      =   3  'Inset
  154.       BevelInnerWidth =   1
  155.       BevelOuter      =   2  'Raised Outlined
  156.       BevelOuterWidth =   2
  157.       BorderWidth     =   6
  158.       Caption         =   ""
  159.       CaptionPos      =   4  'Center Center
  160.       ChildSpacing    =   6
  161.       FloodColor      =   &H00FF00FF&
  162.       FloodDirection  =   3  'Up
  163.       FloodPercent    =   0
  164.       Height          =   2715
  165.       Index           =   2
  166.       Left            =   450
  167.       Splitter        =   0  'No
  168.       TabIndex        =   8
  169.       Top             =   855
  170.       Width           =   645
  171.    End
  172.    Begin VideoSoftElastic Flood 
  173.       Align           =   0  'None
  174.       AutoSizeChildren=   0  'None
  175.       BackColor       =   &H00C0C0C0&
  176.       BevelInner      =   3  'Inset
  177.       BevelInnerWidth =   1
  178.       BevelOuter      =   2  'Raised Outlined
  179.       BevelOuterWidth =   2
  180.       BorderWidth     =   6
  181.       Caption         =   ""
  182.       CaptionPos      =   4  'Center Center
  183.       ChildSpacing    =   6
  184.       FloodColor      =   &H00FFFF00&
  185.       FloodDirection  =   2  'Left
  186.       FloodPercent    =   0
  187.       Height          =   555
  188.       Index           =   1
  189.       Left            =   450
  190.       Splitter        =   0  'No
  191.       TabIndex        =   16
  192.       Top             =   3555
  193.       Width           =   2940
  194.    End
  195.    Begin VideoSoftElastic Flood 
  196.       Align           =   0  'None
  197.       AutoSizeChildren=   0  'None
  198.       BackColor       =   &H00C0C0C0&
  199.       BevelInner      =   3  'Inset
  200.       BevelInnerWidth =   1
  201.       BevelOuter      =   2  'Raised Outlined
  202.       BevelOuterWidth =   2
  203.       BorderWidth     =   6
  204.       Caption         =   ""
  205.       CaptionPos      =   4  'Center Center
  206.       ChildSpacing    =   6
  207.       FloodColor      =   &H0000FFFF&
  208.       FloodDirection  =   1  'Right
  209.       FloodPercent    =   0
  210.       Height          =   555
  211.       Index           =   0
  212.       Left            =   1080
  213.       Splitter        =   0  'No
  214.       TabIndex        =   17
  215.       Top             =   855
  216.       Width           =   2310
  217.    End
  218.    Begin VideoSoftElastic VSElastic1 
  219.       Align           =   0  'None
  220.       AutoSizeChildren=   0  'None
  221.       BackColor       =   &H00C0C0C0&
  222.       BevelInner      =   3  'Inset
  223.       BevelInnerWidth =   1
  224.       BevelOuter      =   1  'Raised
  225.       BevelOuterWidth =   2
  226.       BorderWidth     =   6
  227.       Caption         =   "VideoSoft Elastic makes all the controls inside 3D."
  228.       CaptionPos      =   3  'Center Top
  229.       ChildSpacing    =   6
  230.       FloodColor      =   &H000000C0&
  231.       FloodDirection  =   0  'None
  232.       FloodPercent    =   0
  233.       ForeColor       =   &H00FF0000&
  234.       Height          =   3135
  235.       Index           =   1
  236.       Left            =   4815
  237.       Splitter        =   0  'No
  238.       TabIndex        =   20
  239.       Top             =   900
  240.       Width           =   2940
  241.       Begin CommandButton Command1 
  242.          Caption         =   "This is a regular button"
  243.          FontBold        =   0   'False
  244.          FontItalic      =   0   'False
  245.          FontName        =   "MS Sans Serif"
  246.          FontSize        =   8.25
  247.          FontStrikethru  =   0   'False
  248.          FontUnderline   =   0   'False
  249.          Height          =   465
  250.          Index           =   10
  251.          Left            =   405
  252.          TabIndex        =   22
  253.          Tag             =   "H"
  254.          Top             =   2250
  255.          Width           =   2055
  256.       End
  257.       Begin TextBox Text1 
  258.          Height          =   915
  259.          Index           =   0
  260.          Left            =   360
  261.          MultiLine       =   -1  'True
  262.          ScrollBars      =   2  'Vertical
  263.          TabIndex        =   21
  264.          Text            =   "This is a regular text box"
  265.          Top             =   630
  266.          Width           =   2175
  267.       End
  268.       Begin Label Label1 
  269.          Alignment       =   2  'Center
  270.          BackStyle       =   0  'Transparent
  271.          Caption         =   "This is a regular label"
  272.          ForeColor       =   &H00000000&
  273.          Height          =   285
  274.          Index           =   1
  275.          Left            =   270
  276.          TabIndex        =   18
  277.          Top             =   1710
  278.          Width           =   2400
  279.       End
  280.    End
  281.    Begin Timer Timer1 
  282.       Interval        =   1
  283.       Left            =   4095
  284.       Top             =   3600
  285.    End
  286.    Begin VideoSoftElastic Toolbar 
  287.       Align           =   1  'Align Top
  288.       AutoSizeChildren=   2  'Uneven Horizontally
  289.       BackColor       =   &H00C0C0C0&
  290.       BevelInner      =   3  'Inset
  291.       BevelInnerWidth =   1
  292.       BevelOuter      =   2  'Raised Outlined
  293.       BevelOuterWidth =   2
  294.       BorderWidth     =   6
  295.       Caption         =   ""
  296.       CaptionPos      =   1  'Left Center
  297.       ChildSpacing    =   6
  298.       FloodColor      =   &H000000C0&
  299.       FloodDirection  =   0  'None
  300.       FloodPercent    =   0
  301.       Height          =   645
  302.       Left            =   0
  303.       Splitter        =   0  'No
  304.       TabIndex        =   2
  305.       Top             =   0
  306.       Width           =   8145
  307.       Begin VideoSoftElastic VSElastic2 
  308.          Align           =   0  'None
  309.          AutoSizeChildren=   1  'Even Horizontally
  310.          BackColor       =   &H00C0C0C0&
  311.          BevelInner      =   3  'Inset
  312.          BevelInnerWidth =   1
  313.          BevelOuter      =   2  'Raised Outlined
  314.          BevelOuterWidth =   0
  315.          BorderWidth     =   6
  316.          Caption         =   ""
  317.          CaptionPos      =   1  'Left Center
  318.          ChildSpacing    =   6
  319.          FloodColor      =   &H000000C0&
  320.          FloodDirection  =   0  'None
  321.          FloodPercent    =   0
  322.          Height          =   465
  323.          Index           =   0
  324.          Left            =   90
  325.          Splitter        =   0  'No
  326.          TabIndex        =   3
  327.          Top             =   90
  328.          Width           =   5115
  329.          Begin TextBox Text1 
  330.             FontBold        =   0   'False
  331.             FontItalic      =   0   'False
  332.             FontName        =   "MS Sans Serif"
  333.             FontSize        =   8.25
  334.             FontStrikethru  =   0   'False
  335.             FontUnderline   =   0   'False
  336.             Height          =   285
  337.             Index           =   1
  338.             Left            =   90
  339.             TabIndex        =   14
  340.             Text            =   "When the form is resized, check this text box and the A buttons."
  341.             Top             =   90
  342.             Width           =   4935
  343.          End
  344.       End
  345.       Begin VideoSoftElastic VSElastic3 
  346.          Align           =   0  'None
  347.          AutoSizeChildren=   1  'Even Horizontally
  348.          BackColor       =   &H00C0C0C0&
  349.          BevelInner      =   3  'Inset
  350.          BevelInnerWidth =   1
  351.          BevelOuter      =   2  'Raised Outlined
  352.          BevelOuterWidth =   2
  353.          BorderWidth     =   6
  354.          Caption         =   ""
  355.          CaptionPos      =   1  'Left Center
  356.          ChildSpacing    =   6
  357.          FloodColor      =   &H000000C0&
  358.          FloodDirection  =   0  'None
  359.          FloodPercent    =   0
  360.          Height          =   465
  361.          Index           =   0
  362.          Left            =   5295
  363.          Splitter        =   0  'No
  364.          TabIndex        =   4
  365.          Top             =   90
  366.          Width           =   2760
  367.          Begin CommandButton Command1 
  368.             Caption         =   "A"
  369.             Height          =   285
  370.             Index           =   4
  371.             Left            =   90
  372.             TabIndex        =   7
  373.             Top             =   90
  374.             Width           =   795
  375.          End
  376.          Begin CommandButton Command1 
  377.             Caption         =   "A"
  378.             Height          =   285
  379.             Index           =   2
  380.             Left            =   975
  381.             TabIndex        =   6
  382.             Top             =   90
  383.             Width           =   795
  384.          End
  385.          Begin CommandButton Command1 
  386.             Caption         =   "A"
  387.             Height          =   285
  388.             Index           =   0
  389.             Left            =   1860
  390.             TabIndex        =   5
  391.             Top             =   90
  392.             Width           =   810
  393.          End
  394.       End
  395.    End
  396.    Begin Label Label1 
  397.       Alignment       =   2  'Center
  398.       BackStyle       =   0  'Transparent
  399.       Caption         =   "Flooding with VideoSoft Elastic"
  400.       FontBold        =   -1  'True
  401.       FontItalic      =   0   'False
  402.       FontName        =   "MS Sans Serif"
  403.       FontSize        =   13.5
  404.       FontStrikethru  =   0   'False
  405.       FontUnderline   =   0   'False
  406.       ForeColor       =   &H00FF0000&
  407.       Height          =   1410
  408.       Index           =   0
  409.       Left            =   1305
  410.       TabIndex        =   19
  411.       Top             =   1710
  412.       Width           =   1815
  413.    End
  414. Option Explicit
  415. Sub Form_Resize ()
  416.   StatusBar.Top = 0
  417. End Sub
  418. Sub Timer1_Timer ()
  419.   Dim j%
  420.   Static i%
  421.   If i > 97 Then i = 0
  422.   i = i + 3
  423.   For j = 0 To 3
  424.     flood(j).FloodPercent = i
  425.     flood(j).Caption = i & "%"
  426.   Next j
  427. End Sub
  428.