home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / delphi / prctvb25.lzh / VB.ZIP / PSHAPES.FRM < prev    next >
Text File  |  1996-01-18  |  13KB  |  410 lines

  1. VERSION 2.00
  2. Begin Form PShapes 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Percent VBX Shape Properties"
  6.    ClientHeight    =   4920
  7.    ClientLeft      =   1590
  8.    ClientTop       =   1500
  9.    ClientWidth     =   4695
  10.    Height          =   5325
  11.    Left            =   1530
  12.    LinkTopic       =   "Form2"
  13.    MDIChild        =   -1  'True
  14.    ScaleHeight     =   4920
  15.    ScaleWidth      =   4695
  16.    Top             =   1155
  17.    Width           =   4815
  18.    Begin SSFrame Frame3D1 
  19.       Caption         =   "Direction"
  20.       Height          =   975
  21.       Left            =   75
  22.       TabIndex        =   31
  23.       Top             =   2820
  24.       Width           =   1350
  25.       Begin SSOption Option3D1 
  26.          Caption         =   "Forward"
  27.          Height          =   270
  28.          Index           =   0
  29.          Left            =   120
  30.          TabIndex        =   33
  31.          Top             =   285
  32.          Value           =   -1  'True
  33.          Width           =   1185
  34.       End
  35.       Begin SSOption Option3D1 
  36.          Caption         =   "Backward"
  37.          Height          =   315
  38.          Index           =   1
  39.          Left            =   105
  40.          TabIndex        =   32
  41.          TabStop         =   0   'False
  42.          Top             =   525
  43.          Width           =   1230
  44.       End
  45.    End
  46.    Begin SSFrame Frame3D2 
  47.       Caption         =   "Orientation"
  48.       Height          =   960
  49.       Left            =   1455
  50.       TabIndex        =   28
  51.       Top             =   2820
  52.       Width           =   1335
  53.       Begin SSOption Option3D1 
  54.          Caption         =   "Vertical"
  55.          Height          =   300
  56.          Index           =   2
  57.          Left            =   105
  58.          TabIndex        =   30
  59.          Top             =   540
  60.          Value           =   -1  'True
  61.          Width           =   1200
  62.       End
  63.       Begin SSOption Option3D1 
  64.          Caption         =   "Horizontal"
  65.          Height          =   285
  66.          Index           =   3
  67.          Left            =   120
  68.          TabIndex        =   29
  69.          TabStop         =   0   'False
  70.          Top             =   255
  71.          Width           =   1185
  72.       End
  73.    End
  74.    Begin Frame Frame2 
  75.       BackColor       =   &H00C0C0C0&
  76.       Caption         =   "OffColor"
  77.       Height          =   1185
  78.       Left            =   3000
  79.       TabIndex        =   18
  80.       Top             =   2670
  81.       Width           =   1605
  82.       Begin Label HColors 
  83.          BackColor       =   &H00000000&
  84.          Height          =   225
  85.          Index           =   17
  86.          Left            =   450
  87.          TabIndex        =   27
  88.          Top             =   360
  89.          Width           =   225
  90.       End
  91.       Begin Label HColors 
  92.          BackColor       =   &H00808080&
  93.          Height          =   225
  94.          Index           =   16
  95.          Left            =   930
  96.          TabIndex        =   26
  97.          Top             =   570
  98.          Width           =   225
  99.       End
  100.       Begin Label HColors 
  101.          BackColor       =   &H00FFFFFF&
  102.          Height          =   225
  103.          Index           =   15
  104.          Left            =   690
  105.          TabIndex        =   25
  106.          Top             =   360
  107.          Width           =   225
  108.       End
  109.       Begin Label HColors 
  110.          BackColor       =   &H000000FF&
  111.          Height          =   225
  112.          Index           =   14
  113.          Left            =   450
  114.          TabIndex        =   24
  115.          Top             =   780
  116.          Width           =   225
  117.       End
  118.       Begin Label HColors 
  119.          BackColor       =   &H0000FF00&
  120.          Height          =   225
  121.          Index           =   13
  122.          Left            =   930
  123.          TabIndex        =   23
  124.          Top             =   360
  125.          Width           =   225
  126.       End
  127.       Begin Label HColors 
  128.          BackColor       =   &H000080FF&
  129.          Height          =   225
  130.          Index           =   12
  131.          Left            =   690
  132.          TabIndex        =   22
  133.          Top             =   780
  134.          Width           =   225
  135.       End
  136.       Begin Label HColors 
  137.          BackColor       =   &H00C00000&
  138.          Height          =   225
  139.          Index           =   11
  140.          Left            =   450
  141.          TabIndex        =   21
  142.          Top             =   570
  143.          Width           =   225
  144.       End
  145.       Begin Label HColors 
  146.          BackColor       =   &H00FF00FF&
  147.          Height          =   225
  148.          Index           =   10
  149.          Left            =   930
  150.          TabIndex        =   20
  151.          Top             =   780
  152.          Width           =   225
  153.       End
  154.       Begin Label HColors 
  155.          BackColor       =   &H00FFFF00&
  156.          Height          =   225
  157.          Index           =   9
  158.          Left            =   690
  159.          TabIndex        =   19
  160.          Top             =   570
  161.          Width           =   225
  162.       End
  163.    End
  164.    Begin PRCNT Prcnt1 
  165.       AutoRedraw      =   -1  'True
  166.       AVersion        =   2.501
  167.       BackColor       =   &H00C0C0C0&
  168.       BarBorder       =   0.1
  169.       BarInner        =   0.1
  170.       BarOuter        =   0.9
  171.       BevelInner      =   2  ' 2 - Inset
  172.       BevelOuter      =   0  ' 0 - None
  173.       BevelWidth      =   2
  174.       BorderWidth     =   2
  175.       CaptionID       =   0
  176.       Captions        =   0
  177.       Direction       =   0  ' 0 - Forward
  178.       DisplayMode     =   0  ' 0 - Linear
  179.       FontID          =   0
  180.       Height          =   2800
  181.       Left            =   45
  182.       Max             =   100
  183.       Min             =   0
  184.       MouseControl    =   -1  'True
  185.       OffColor        =   &H00FFFFFF&
  186.       OnColor         =   &H006E0000&
  187.       Orientation     =   1  ' 1 - Vertical
  188.       Percent         =   47
  189.       PercentColor    =   &H00000000&
  190.       PercentFontID   =   0
  191.       PercentStyle    =   0  ' 0 - On/Off Negative
  192.       Shape           =   ""
  193.       ShapeStyle      =   0  ' 0 - Rectangle
  194.       TabIndex        =   17
  195.       Top             =   15
  196.       Value           =   47
  197.       Width           =   2800
  198.       ZLoad           =   PSHAPES.FRX:0000
  199.    End
  200.    Begin Frame Frame1 
  201.       BackColor       =   &H00C0C0C0&
  202.       Caption         =   "ShapeStyle"
  203.       Height          =   1320
  204.       Left            =   3015
  205.       TabIndex        =   11
  206.       Top             =   120
  207.       Width           =   1605
  208.       Begin OptionButton Option2 
  209.          BackColor       =   &H00C0C0C0&
  210.          Caption         =   "Rectangle"
  211.          Height          =   225
  212.          Index           =   0
  213.          Left            =   105
  214.          TabIndex        =   15
  215.          Top             =   255
  216.          Value           =   -1  'True
  217.          Width           =   1305
  218.       End
  219.       Begin OptionButton Option2 
  220.          BackColor       =   &H00C0C0C0&
  221.          Caption         =   "Ellipse"
  222.          Height          =   225
  223.          Index           =   1
  224.          Left            =   105
  225.          TabIndex        =   14
  226.          Top             =   465
  227.          Width           =   1095
  228.       End
  229.       Begin OptionButton Option2 
  230.          BackColor       =   &H00C0C0C0&
  231.          Caption         =   "Tank"
  232.          Height          =   225
  233.          Index           =   2
  234.          Left            =   105
  235.          TabIndex        =   13
  236.          Top             =   675
  237.          Width           =   1005
  238.       End
  239.       Begin OptionButton Option2 
  240.          BackColor       =   &H00C0C0C0&
  241.          Caption         =   "UserDefined"
  242.          Height          =   225
  243.          Index           =   3
  244.          Left            =   105
  245.          TabIndex        =   12
  246.          Top             =   885
  247.          Width           =   1380
  248.       End
  249.    End
  250.    Begin Frame Frame3 
  251.       BackColor       =   &H00C0C0C0&
  252.       Caption         =   "OnColor"
  253.       Height          =   1185
  254.       Left            =   3000
  255.       TabIndex        =   1
  256.       Top             =   1455
  257.       Width           =   1605
  258.       Begin Label HColors 
  259.          BackColor       =   &H00FFFF00&
  260.          Height          =   225
  261.          Index           =   4
  262.          Left            =   690
  263.          TabIndex        =   10
  264.          Top             =   570
  265.          Width           =   225
  266.       End
  267.       Begin Label HColors 
  268.          BackColor       =   &H00FF00FF&
  269.          Height          =   225
  270.          Index           =   8
  271.          Left            =   930
  272.          TabIndex        =   9
  273.          Top             =   780
  274.          Width           =   225
  275.       End
  276.       Begin Label HColors 
  277.          BackColor       =   &H00C00000&
  278.          Height          =   225
  279.          Index           =   3
  280.          Left            =   450
  281.          TabIndex        =   8
  282.          Top             =   570
  283.          Width           =   225
  284.       End
  285.       Begin Label HColors 
  286.          BackColor       =   &H000080FF&
  287.          Height          =   225
  288.          Index           =   7
  289.          Left            =   690
  290.          TabIndex        =   7
  291.          Top             =   780
  292.          Width           =   225
  293.       End
  294.       Begin Label HColors 
  295.          BackColor       =   &H0000FF00&
  296.          Height          =   225
  297.          Index           =   2
  298.          Left            =   930
  299.          TabIndex        =   6
  300.          Top             =   360
  301.          Width           =   225
  302.       End
  303.       Begin Label HColors 
  304.          BackColor       =   &H000000FF&
  305.          Height          =   225
  306.          Index           =   6
  307.          Left            =   450
  308.          TabIndex        =   5
  309.          Top             =   780
  310.          Width           =   225
  311.       End
  312.       Begin Label HColors 
  313.          BackColor       =   &H00FFFFFF&
  314.          Height          =   225
  315.          Index           =   1
  316.          Left            =   690
  317.          TabIndex        =   4
  318.          Top             =   360
  319.          Width           =   225
  320.       End
  321.       Begin Label HColors 
  322.          BackColor       =   &H00808080&
  323.          Height          =   225
  324.          Index           =   5
  325.          Left            =   930
  326.          TabIndex        =   3
  327.          Top             =   570
  328.          Width           =   225
  329.       End
  330.       Begin Label HColors 
  331.          BackColor       =   &H00000000&
  332.          Height          =   225
  333.          Index           =   0
  334.          Left            =   450
  335.          TabIndex        =   2
  336.          Top             =   360
  337.          Width           =   225
  338.       End
  339.    End
  340.    Begin TextBox Text1 
  341.       Height          =   855
  342.       Left            =   105
  343.       MultiLine       =   -1  'True
  344.       TabIndex        =   0
  345.       Text            =   "0,1000, 333,250, 1000,250, 500,-250, 666,-1000, 0,-666, -666,-1000, -500,-250, -1000,250, -333,250"
  346.       Top             =   4020
  347.       Width           =   4470
  348.    End
  349.    Begin Label Label1 
  350.       BackStyle       =   0  'Transparent
  351.       Caption         =   "Shape:"
  352.       Height          =   255
  353.       Left            =   105
  354.       TabIndex        =   34
  355.       Top             =   3825
  356.       Width           =   2370
  357.    End
  358.    Begin Label Label2 
  359.       Alignment       =   2  'Center
  360.       AutoSize        =   -1  'True
  361.       BackStyle       =   0  'Transparent
  362.       Caption         =   " "
  363.       Height          =   195
  364.       Index           =   0
  365.       Left            =   5745
  366.       TabIndex        =   16
  367.       Top             =   1380
  368.       Width           =   90
  369.    End
  370. End
  371.  
  372. Sub HColors_Click (index As Integer)
  373.  
  374.     If index < 9 Then
  375.         Prcnt1.OnColor = HColors(index).BackColor
  376.     Else
  377.         Prcnt1.OffColor = HColors(index).BackColor
  378.     End If
  379.  
  380. End Sub
  381.  
  382. Sub Option2_Click (index As Integer)
  383.  
  384.     Prcnt1.ShapeStyle = index
  385.     If index = 3 Then Prcnt1.Shape = Text1
  386.  
  387. End Sub
  388.  
  389. Sub Option3D1_Click (index As Integer, Value As Integer)
  390.  
  391.     Select Case index
  392.         Case 0 'forward
  393.             Prcnt1.Direction = 0
  394.         Case 1 'backward
  395.             Prcnt1.Direction = 1
  396.         Case 2 'vertical
  397.             Prcnt1.Orientation = 1
  398.         Case 3 'horizontal
  399.             Prcnt1.Orientation = 0
  400.     End Select
  401.  
  402. End Sub
  403.  
  404. Sub Text1_Change ()
  405.  
  406.     Prcnt1.Shape = Text1
  407.  
  408. End Sub
  409.  
  410.