[Lazarus] TAChart cannot zoom

Werner Pamler werner.pamler at freenet.de
Tue Oct 21 20:32:55 CEST 2014


You have added a ChartToolset and have assigned it to the chart. This 
deactivates the built-in toolset which is responsible for default 
zooming and panning. All you have to do is to add another ZoomDragTool 
to your toolset. To make it respond to dragging with the left mouse 
button set its Shift property to ssLeft, this is the standard behavior 
of the built-in zoom tool. If you need panning as well add a 
ZoomPanTool; by default, it becomes active with the right mouse button. 
But if you already use these Shift values in tools that are currently in 
your toolset, select something else, or add a key like ssCtrl, or 
ssShift (or both) - there are many possibilities.

There are several tutorial which cover zooming in TAChart:

  * http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_Chart_Tools,
  * http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_Function_Series
  * http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_ColorMapSeries,_Zooming

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141021/c8cd3986/attachment-0003.html>


More information about the Lazarus mailing list