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

  1. VERSION 2.00
  2. Begin Form Pcaption 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Percent Captions Properties"
  6.    ClientHeight    =   3825
  7.    ClientLeft      =   1545
  8.    ClientTop       =   1500
  9.    ClientWidth     =   6930
  10.    FontBold        =   -1  'True
  11.    FontItalic      =   0   'False
  12.    FontName        =   "Arial"
  13.    FontSize        =   8.25
  14.    FontStrikethru  =   0   'False
  15.    FontUnderline   =   0   'False
  16.    Height          =   4230
  17.    Left            =   1485
  18.    LinkTopic       =   "Pcaption"
  19.    MDIChild        =   -1  'True
  20.    ScaleHeight     =   3825
  21.    ScaleWidth      =   6930
  22.    Top             =   1155
  23.    Width           =   7050
  24.    Begin TextBox Text1 
  25.       Height          =   585
  26.       Left            =   3825
  27.       MultiLine       =   -1  'True
  28.       TabIndex        =   17
  29.       Text            =   "Text1"
  30.       Top             =   3180
  31.       Width           =   3045
  32.    End
  33.    Begin Frame Frame1 
  34.       BackColor       =   &H00C0C0C0&
  35.       Caption         =   "CaptionFontID"
  36.       FontBold        =   -1  'True
  37.       FontItalic      =   0   'False
  38.       FontName        =   "Arial"
  39.       FontSize        =   8.25
  40.       FontStrikethru  =   0   'False
  41.       FontUnderline   =   0   'False
  42.       Height          =   1140
  43.       Index           =   3
  44.       Left            =   3045
  45.       TabIndex        =   11
  46.       Top             =   1530
  47.       Width           =   2400
  48.       Begin OptionButton Option2 
  49.          BackColor       =   &H00C0C0C0&
  50.          Caption         =   "Times New Roman"
  51.          FontBold        =   -1  'True
  52.          FontItalic      =   0   'False
  53.          FontName        =   "Times New Roman"
  54.          FontSize        =   9.75
  55.          FontStrikethru  =   0   'False
  56.          FontUnderline   =   0   'False
  57.          Height          =   240
  58.          Index           =   2
  59.          Left            =   195
  60.          TabIndex        =   14
  61.          Top             =   810
  62.          Width           =   2010
  63.       End
  64.       Begin OptionButton Option2 
  65.          BackColor       =   &H00C0C0C0&
  66.          Caption         =   "MS Sans Serif"
  67.          FontBold        =   -1  'True
  68.          FontItalic      =   0   'False
  69.          FontName        =   "MS Serif"
  70.          FontSize        =   12
  71.          FontStrikethru  =   0   'False
  72.          FontUnderline   =   0   'False
  73.          Height          =   285
  74.          Index           =   1
  75.          Left            =   195
  76.          TabIndex        =   13
  77.          Top             =   540
  78.          Width           =   2010
  79.       End
  80.       Begin OptionButton Option2 
  81.          BackColor       =   &H00C0C0C0&
  82.          Caption         =   "Arial"
  83.          FontBold        =   0   'False
  84.          FontItalic      =   0   'False
  85.          FontName        =   "Arial"
  86.          FontSize        =   13.5
  87.          FontStrikethru  =   0   'False
  88.          FontUnderline   =   0   'False
  89.          Height          =   315
  90.          Index           =   0
  91.          Left            =   195
  92.          TabIndex        =   12
  93.          Top             =   270
  94.          Value           =   -1  'True
  95.          Width           =   1230
  96.       End
  97.    End
  98.    Begin Frame Frame1 
  99.       BackColor       =   &H00C0C0C0&
  100.       Caption         =   "Caption Position"
  101.       FontBold        =   -1  'True
  102.       FontItalic      =   0   'False
  103.       FontName        =   "Arial"
  104.       FontSize        =   8.25
  105.       FontStrikethru  =   0   'False
  106.       FontUnderline   =   0   'False
  107.       Height          =   1065
  108.       Index           =   2
  109.       Left            =   120
  110.       TabIndex        =   6
  111.       Top             =   2700
  112.       Width           =   3600
  113.       Begin HScrollBar HScroll1 
  114.          Height          =   300
  115.          Index           =   1
  116.          LargeChange     =   10
  117.          Left            =   990
  118.          Max             =   100
  119.          TabIndex        =   8
  120.          Top             =   600
  121.          Width           =   2000
  122.       End
  123.       Begin HScrollBar HScroll1 
  124.          Height          =   300
  125.          Index           =   0
  126.          LargeChange     =   10
  127.          Left            =   990
  128.          Max             =   100
  129.          TabIndex        =   7
  130.          Top             =   300
  131.          Width           =   2000
  132.       End
  133.       Begin Label Label2 
  134.          AutoSize        =   -1  'True
  135.          BackColor       =   &H00C0C0C0&
  136.          Caption         =   "CaptionY:"
  137.          FontBold        =   0   'False
  138.          FontItalic      =   0   'False
  139.          FontName        =   "Arial"
  140.          FontSize        =   8.25
  141.          FontStrikethru  =   0   'False
  142.          FontUnderline   =   0   'False
  143.          Height          =   210
  144.          Index           =   1
  145.          Left            =   255
  146.          TabIndex        =   16
  147.          Top             =   630
  148.          Width           =   705
  149.       End
  150.       Begin Label Label2 
  151.          AutoSize        =   -1  'True
  152.          BackColor       =   &H00C0C0C0&
  153.          Caption         =   "CaptionX:"
  154.          FontBold        =   0   'False
  155.          FontItalic      =   0   'False
  156.          FontName        =   "Arial"
  157.          FontSize        =   8.25
  158.          FontStrikethru  =   0   'False
  159.          FontUnderline   =   0   'False
  160.          Height          =   210
  161.          Index           =   0
  162.          Left            =   255
  163.          TabIndex        =   15
  164.          Top             =   345
  165.          Width           =   690
  166.       End
  167.       Begin Label Label1 
  168.          AutoSize        =   -1  'True
  169.          BackColor       =   &H00C0C0C0&
  170.          Caption         =   "0"
  171.          Height          =   195
  172.          Index           =   1
  173.          Left            =   3030
  174.          TabIndex        =   10
  175.          Top             =   645
  176.          Width           =   120
  177.       End
  178.       Begin Label Label1 
  179.          AutoSize        =   -1  'True
  180.          BackColor       =   &H00C0C0C0&
  181.          Caption         =   "0"
  182.          Height          =   195
  183.          Index           =   0
  184.          Left            =   3030
  185.          TabIndex        =   9
  186.          Top             =   360
  187.          Width           =   120
  188.       End
  189.    End
  190.    Begin Frame Frame1 
  191.       BackColor       =   &H00C0C0C0&
  192.       Caption         =   "CaptionColor"
  193.       FontBold        =   -1  'True
  194.       FontItalic      =   0   'False
  195.       FontName        =   "Arial"
  196.       FontSize        =   8.25
  197.       FontStrikethru  =   0   'False
  198.       FontUnderline   =   0   'False
  199.       Height          =   1140
  200.       Index           =   1
  201.       Left            =   1400
  202.       TabIndex        =   2
  203.       Top             =   1530
  204.       Width           =   1380
  205.       Begin Label HColors 
  206.          BackColor       =   &H00000000&
  207.          Height          =   225
  208.          Index           =   0
  209.          Left            =   345
  210.          TabIndex        =   26
  211.          Top             =   330
  212.          Width           =   225
  213.       End
  214.       Begin Label HColors 
  215.          BackColor       =   &H0000FFFF&
  216.          Height          =   225
  217.          Index           =   5
  218.          Left            =   795
  219.          TabIndex        =   25
  220.          Top             =   555
  221.          Width           =   225
  222.       End
  223.       Begin Label HColors 
  224.          BackColor       =   &H00FFFFFF&
  225.          Height          =   225
  226.          Index           =   1
  227.          Left            =   570
  228.          TabIndex        =   24
  229.          Top             =   330
  230.          Width           =   225
  231.       End
  232.       Begin Label HColors 
  233.          BackColor       =   &H000000FF&
  234.          Height          =   225
  235.          Index           =   6
  236.          Left            =   345
  237.          TabIndex        =   23
  238.          Top             =   780
  239.          Width           =   225
  240.       End
  241.       Begin Label HColors 
  242.          BackColor       =   &H0000FF00&
  243.          Height          =   225
  244.          Index           =   2
  245.          Left            =   795
  246.          TabIndex        =   22
  247.          Top             =   330
  248.          Width           =   225
  249.       End
  250.       Begin Label HColors 
  251.          BackColor       =   &H000080FF&
  252.          Height          =   225
  253.          Index           =   7
  254.          Left            =   570
  255.          TabIndex        =   21
  256.          Top             =   780
  257.          Width           =   225
  258.       End
  259.       Begin Label HColors 
  260.          BackColor       =   &H00C00000&
  261.          Height          =   225
  262.          Index           =   3
  263.          Left            =   345
  264.          TabIndex        =   20
  265.          Top             =   555
  266.          Width           =   225
  267.       End
  268.       Begin Label HColors 
  269.          BackColor       =   &H00FF00FF&
  270.          Height          =   225
  271.          Index           =   8
  272.          Left            =   795
  273.          TabIndex        =   19
  274.          Top             =   780
  275.          Width           =   225
  276.       End
  277.       Begin Label HColors 
  278.          BackColor       =   &H00FFFF00&
  279.          Height          =   225
  280.          Index           =   4
  281.          Left            =   570
  282.          TabIndex        =   18
  283.          Top             =   555
  284.          Width           =   225
  285.       End
  286.    End
  287.    Begin Frame Frame1 
  288.       BackColor       =   &H00C0C0C0&
  289.       Caption         =   "CaptionID"
  290.       FontBold        =   -1  'True
  291.       FontItalic      =   0   'False
  292.       FontName        =   "Arial"
  293.       FontSize        =   8.25
  294.       FontStrikethru  =   0   'False
  295.       FontUnderline   =   0   'False
  296.       Height          =   1140
  297.       Index           =   0
  298.       Left            =   120
  299.       TabIndex        =   1
  300.       Top             =   1530
  301.       Width           =   990
  302.       Begin OptionButton Option1 
  303.          BackColor       =   &H00C0C0C0&
  304.          Caption         =   "2"
  305.          FontBold        =   -1  'True
  306.          FontItalic      =   0   'False
  307.          FontName        =   "Arial"
  308.          FontSize        =   8.25
  309.          FontStrikethru  =   0   'False
  310.          FontUnderline   =   0   'False
  311.          Height          =   240
  312.          Index           =   2
  313.          Left            =   315
  314.          TabIndex        =   5
  315.          Top             =   735
  316.          Width           =   540
  317.       End
  318.       Begin OptionButton Option1 
  319.          BackColor       =   &H00C0C0C0&
  320.          Caption         =   "1"
  321.          FontBold        =   -1  'True
  322.          FontItalic      =   0   'False
  323.          FontName        =   "Arial"
  324.          FontSize        =   8.25
  325.          FontStrikethru  =   0   'False
  326.          FontUnderline   =   0   'False
  327.          Height          =   240
  328.          Index           =   1
  329.          Left            =   315
  330.          TabIndex        =   4
  331.          Top             =   495
  332.          Width           =   540
  333.       End
  334.       Begin OptionButton Option1 
  335.          BackColor       =   &H00C0C0C0&
  336.          Caption         =   "0"
  337.          FontBold        =   -1  'True
  338.          FontItalic      =   0   'False
  339.          FontName        =   "Arial"
  340.          FontSize        =   8.25
  341.          FontStrikethru  =   0   'False
  342.          FontUnderline   =   0   'False
  343.          Height          =   240
  344.          Index           =   0
  345.          Left            =   315
  346.          TabIndex        =   3
  347.          Top             =   270
  348.          Value           =   -1  'True
  349.          Width           =   540
  350.       End
  351.    End
  352.    Begin PRCNT Prcnt1 
  353.       AutoRedraw      =   -1  'True
  354.       AVersion        =   2.501
  355.       BackColor       =   &H00C0C0C0&
  356.       BarBorder       =   0.025
  357.       BarInner        =   0.3
  358.       BarOuter        =   0.6
  359.       BevelInner      =   2  ' 2 - Inset
  360.       BevelOuter      =   1  ' 1 - Raised
  361.       BevelWidth      =   3
  362.       BorderWidth     =   2
  363.       CaptionID       =   2
  364.       Captions        =   3
  365.       Direction       =   0  ' 0 - Forward
  366.       DisplayMode     =   0  ' 0 - Linear
  367.       FontID          =   0
  368.       Height          =   1395
  369.       Left            =   90
  370.       Max             =   100
  371.       Min             =   0
  372.       MouseControl    =   -1  'True
  373.       OffColor        =   &H00FFFFFF&
  374.       OnColor         =   &H000000FF&
  375.       Orientation     =   0  ' 0 - Horizontal
  376.       Percent         =   50
  377.       PercentColor    =   &H00000000&
  378.       PercentFontID   =   0
  379.       PercentStyle    =   0  ' 0 - On/Off Negative
  380.       Shape           =   ""
  381.       ShapeStyle      =   0  ' 0 - Rectangle
  382.       TabIndex        =   0
  383.       Top             =   75
  384.       Value           =   50
  385.       Width           =   6780
  386.       ZLoad           =   PCAPTION.FRX:0000
  387.    End
  388. End
  389.  
  390. Sub Form_Load ()
  391.  
  392.     prcnt1.CaptionID = 0
  393.     Text1 = prcnt1.Caption
  394.     Text1.ForeColor = prcnt1.CaptionColor
  395.     Text1.FontName = prcnt1.FontName
  396.     Text1.FontSize = prcnt1.FontSize
  397.  
  398.     hscroll1(0) = prcnt1.CaptionX * 100
  399.     hscroll1(1) = prcnt1.CaptionY * 100
  400.  
  401. End Sub
  402.  
  403. Sub HColors_Click (index As Integer)
  404.  
  405.     Text1.ForeColor = hcolors(index).BackColor
  406.     prcnt1.CaptionColor = hcolors(index).BackColor
  407.  
  408. End Sub
  409.  
  410. Sub HScroll1_Change (index As Integer)
  411.  
  412.     Select Case index
  413.         Case 0
  414.             prcnt1.CaptionX = hscroll1(0) / 100
  415.         Case 1
  416.             prcnt1.CaptionY = hscroll1(1) / 100
  417.     End Select
  418.     label1(index) = hscroll1(index) / 100
  419.     
  420. End Sub
  421.  
  422. Sub HScroll1_Scroll (index As Integer)
  423.  
  424.     Select Case index
  425.         Case 0
  426.             prcnt1.CaptionX = hscroll1(0) / 100
  427.         Case 1
  428.             prcnt1.CaptionY = hscroll1(1) / 100
  429.     End Select
  430.     label1(index) = hscroll1(index) / 100
  431.     
  432. End Sub
  433.  
  434. Sub Option1_Click (index As Integer)
  435.  
  436.     prcnt1.CaptionID = index
  437.     Text1.Text = prcnt1.Caption
  438.     Text1.ForeColor = prcnt1.CaptionColor
  439.     Text1.FontName = prcnt1.FontName
  440.     Text1.FontSize = prcnt1.FontSize
  441.     hscroll1(0) = prcnt1.CaptionX * 100
  442.     hscroll1(1) = prcnt1.CaptionY * 100
  443.  
  444. End Sub
  445.  
  446. Sub Option2_Click (index As Integer)
  447.  
  448.     prcnt1.CaptionFontID = index
  449.     Text1.ForeColor = prcnt1.CaptionColor
  450.  
  451. End Sub
  452.  
  453.