home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / crystal / extras / vbxdemo / graphopt.frm < prev    next >
Text File  |  1994-12-14  |  6KB  |  195 lines

  1. VERSION 2.00
  2. Begin Form Graphoptions 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Graph Options"
  5.    ClientHeight    =   4740
  6.    ClientLeft      =   1695
  7.    ClientTop       =   1980
  8.    ClientWidth     =   6615
  9.    Height          =   5145
  10.    Left            =   1635
  11.    LinkTopic       =   "Form4"
  12.    ScaleHeight     =   4740
  13.    ScaleWidth      =   6615
  14.    Top             =   1635
  15.    Width           =   6735
  16.    Begin CommandButton OptionsHelp 
  17.       Caption         =   "Help"
  18.       Height          =   375
  19.       Left            =   4350
  20.       TabIndex        =   11
  21.       Top             =   4095
  22.       Width           =   1605
  23.    End
  24.    Begin CommandButton OptionsCancel 
  25.       Caption         =   "Cancel"
  26.       Height          =   375
  27.       Left            =   2550
  28.       TabIndex        =   10
  29.       Top             =   4095
  30.       Width           =   1635
  31.    End
  32.    Begin CommandButton OptionsOK 
  33.       Caption         =   "OK"
  34.       Height          =   375
  35.       Left            =   750
  36.       TabIndex        =   9
  37.       Top             =   4095
  38.       Width           =   1635
  39.    End
  40.    Begin SSFrame OptionsFrame 
  41.       Caption         =   "Options"
  42.       Font3D          =   0  'None
  43.       ForeColor       =   &H00000000&
  44.       Height          =   3525
  45.       Left            =   240
  46.       TabIndex        =   0
  47.       Top             =   270
  48.       Width           =   6135
  49.       Begin SSFrame RangeFrame 
  50.          Caption         =   "Range of Values"
  51.          Font3D          =   0  'None
  52.          ForeColor       =   &H00000000&
  53.          Height          =   870
  54.          Left            =   270
  55.          TabIndex        =   6
  56.          Top             =   2295
  57.          Width           =   5535
  58.          Begin TextBox MaxText 
  59.             Height          =   330
  60.             Left            =   3360
  61.             TabIndex        =   8
  62.             Top             =   360
  63.             Width           =   1335
  64.          End
  65.          Begin TextBox MinText 
  66.             Height          =   330
  67.             Left            =   990
  68.             TabIndex        =   7
  69.             Top             =   360
  70.             Width           =   1335
  71.          End
  72.          Begin Label MaxLabel 
  73.             BackColor       =   &H00C0C0C0&
  74.             Caption         =   "Maximum:"
  75.             Height          =   240
  76.             Left            =   2430
  77.             TabIndex        =   14
  78.             Top             =   405
  79.             Width           =   975
  80.          End
  81.          Begin Label MinLabel 
  82.             BackColor       =   &H00C0C0C0&
  83.             Caption         =   "Minimum:"
  84.             Height          =   240
  85.             Left            =   150
  86.             TabIndex        =   13
  87.             Top             =   405
  88.             Width           =   915
  89.          End
  90.       End
  91.       Begin SSOption VertOption 
  92.          Caption         =   "Vertical"
  93.          Font3D          =   0  'None
  94.          Height          =   285
  95.          Left            =   3120
  96.          TabIndex        =   5
  97.          Top             =   1845
  98.          Value           =   -1  'True
  99.          Width           =   1245
  100.       End
  101.       Begin SSOption HorizOption 
  102.          Caption         =   "Horizontal"
  103.          Font3D          =   0  'None
  104.          Height          =   285
  105.          Left            =   1860
  106.          TabIndex        =   4
  107.          TabStop         =   0   'False
  108.          Top             =   1845
  109.          Width           =   1215
  110.       End
  111.       Begin SSCheck ShowValuesCheck 
  112.          Caption         =   "Show Values on Risers"
  113.          Font3D          =   0  'None
  114.          Height          =   240
  115.          Left            =   300
  116.          TabIndex        =   3
  117.          Top             =   1350
  118.          Width           =   2445
  119.       End
  120.       Begin SSCheck ShowGridCheck 
  121.          Caption         =   "Show Grid Lines"
  122.          Font3D          =   0  'None
  123.          Height          =   330
  124.          Left            =   300
  125.          TabIndex        =   2
  126.          Top             =   900
  127.          Width           =   1965
  128.       End
  129.       Begin SSCheck ShowLegendCheck 
  130.          Caption         =   "Show Legend"
  131.          Font3D          =   0  'None
  132.          Height          =   330
  133.          Left            =   300
  134.          TabIndex        =   1
  135.          Top             =   495
  136.          Value           =   -1  'True
  137.          Width           =   1875
  138.       End
  139.       Begin Label DirectionLabel 
  140.          BackColor       =   &H00C0C0C0&
  141.          Caption         =   "Direction of Bars:"
  142.          Height          =   240
  143.          Left            =   300
  144.          TabIndex        =   12
  145.          Top             =   1890
  146.          Width           =   1545
  147.       End
  148.    End
  149. End
  150. Dim ShowLeg As String
  151. Dim ShowGrid As String
  152.  
  153. Sub OptionsCancel_Click ()
  154.  Unload Me
  155. End Sub
  156.  
  157. Sub OptionsHelp_Click ()
  158.   RCode = Shell("Winhelp c:\crw\crw.hlp", 3)
  159. End Sub
  160.  
  161. Sub OptionsOK_Click ()
  162.  If ShowLegendCheck.Value = True Then
  163.    ShowLeg = "T"
  164.  Else
  165.    ShowLeg = "F"
  166.  End If
  167.     
  168.  If ShowGridCheck.Value = True Then
  169.    ShowGrid = "T"
  170.  Else
  171.    ShowGrid = "F"
  172.  End If
  173.  
  174.   If ShowValuesCheck.Value = True Then
  175.     ShowVal = "T"
  176.   Else
  177.     ShowVal = "F"
  178.   End If
  179.  
  180.   If HorizOption.Value = True Then
  181.     BarDir = "H"
  182.   Else
  183.     If VertOption.Value = True Then
  184.       BarDir = "V"
  185.     End If
  186.   End If
  187.  
  188.   GraphOpt$ = Sect + ";" + Str(GraphNo) + ";" + "ARIAL;" + BarDir + ";" + ShowVal + ";" + ShowGrid + ";" + ShowLeg + ";" + MaxText.Text + ";" + MinText.Text
  189.   'MsgBox GraphOpt$
  190.   Main.Report1.GraphOptions(GraphNo) = GraphOpt$
  191.   
  192.   Unload Me
  193. End Sub
  194.  
  195.