Recent

Author Topic: How to add some chart tools  (Read 7011 times)

ironphil

  • Jr. Member
  • **
  • Posts: 58
How to add some chart tools
« on: January 11, 2011, 01:59:00 pm »
The Edit tools dialog only allows to add 6 different tools. However, in the tools demo, there are many other tools which are not in the list when you click on Add. For example, how do you add ChartToolSet1ZoomIn or ChartToolSet1PanHor?

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: How to add some chart tools
« Reply #1 on: January 11, 2011, 02:17:30 pm »
For example, how do you add ChartToolSet1ZoomIn or ChartToolSet1PanHor?

By pressing "Add" button and selecting "Zoom click" and "Panning drag"
correspondingly from the drop-down menu.
Or maybe I did not quite understand your question?

ironphil

  • Jr. Member
  • **
  • Posts: 58
Re: How to add some chart tools
« Reply #2 on: January 11, 2011, 02:52:53 pm »
Quote
By pressing "Add" button and selecting "Zoom click" and "Panning drag" correspondingly from the drop-down menu.

That's what I did and it simply added ChartToolSet1ZoomClickTool1 and ChartToolSet1PanDragTool1. It didn't add ChartToolSet1ZoomIn or ChartToolSet1PanHor. I think there is something I don't get.

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: How to add some chart tools
« Reply #3 on: January 11, 2011, 02:59:18 pm »
You can change the component name by editing "Name" property in the object inspector.

ironphil

  • Jr. Member
  • **
  • Posts: 58
Re: How to add some chart tools
« Reply #4 on: January 11, 2011, 03:21:23 pm »
OK! I thought the names were predefined. So in the tools demo, the zoom click tool was added several times but under different names? I guess the idea is to bind to them different properties or events. I think I am starting to get it, thanks a lot.

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: How to add some chart tools
« Reply #5 on: January 11, 2011, 03:46:04 pm »
Yes, this is the general principle of Lazarus/Delphi form editor.
You add components, which by default get generic names like "Button1", "Button2" etc.
However, it is a good style to give a meaningful names to the components
in non-trivial applications.

petrosvanstaden

  • Newbie
  • Posts: 1
Re: How to add some chart tools
« Reply #6 on: January 25, 2011, 09:36:48 am »
If you go to editing name property, ou should be able to rename the component...  That usually works for me.

Think smeone else mentioned this as well..  MMMmm  ;D

 

TinyPortal © 2005-2018