简体   繁体   English

如何在VB6中创建Teechart?

[英]How to create Teechart in VB6?

如何在VB6中创建Teechart?

you should follow this tutorial for using tee chart in VB 6.0 您应该按照本教程在VB 6.0中使用T型图

http://www.steema.com/files/public/teechart/java/v1/docs/Tutorials/tutorial6.htm http://www.steema.com/files/public/teechart/java/v1/docs/Tutorials/tutorial6.htm

Once you have installed TeeChart Pro ActiveX in our computer you need to: 在我们的计算机上安装TeeChart Pro ActiveX之后,您需要:

  1. Start VB6 Create a new application 启动VB6创建一个新的应用程序
  2. Go to Project -> Components 转到项目->组件
  3. Search for TeeChart on the list (pressing a 'T' is quicker :-P) 在列表中搜索TeeChart(按'T'更快:-P)
  4. Enable TeeChart components in the list Press OK. 在列表中启用TeeChart组件按OK。 Now you'll have TeeChart components in the toolbox. 现在,您将在工具箱中拥有TeeChart组件。
  5. Select TChart component in the component palette and add one to your form. 在组件面板中选择TChart组件,然后将其添加到表单中。
  6. Double-click the form to generate the OnLoad event handler 双击表单以生成OnLoad事件处理程序
  7. Implement the OnLoad event like this: 像这样实现OnLoad事件:

Private Sub Form_Load() 私人子Form_Load()

TChart1.AddSeries scBar

For i = 0 To 10
    TChart1.Series(0).Add Rnd, "", clTeeColor
Next

End Sub 结束子

This will plot a bar series with 10 random values. 这将绘制带有10个随机值的条形图。 For further information I strongly recommend you to read the tutorials and the features demo included with the installation and available at TeeChart's program group. 有关更多信息,我强烈建议您阅读安装随附的教程和功能演示,该教程可在TeeChart的程序组中获得。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM