Zoom out one step back? lazarus / 55-TAChart ---------------------------------------------------------------------- CM630 · 2012-09-13 12:16 By default zoom out returns the logical extends to the default values. So for example, I zoom in (step 1), then I zoom again (step 2), and once again (step 3). Do TChartToolset support zoom out to step 2, and on the next unzoom- to step 1, or I have to implement it by my own procedure? ---------------------------------------------------------------------- Ask · 2012-09-14 11:12 Yes, there is no such feature currently. I will think about implementing it, but there are some subtle issues here. For now, I have added PrevLogicalExtent property in r38650, which is less than you wanted, but was very easy to implement ---------------------------------------------------------------------- Ask · 2012-09-14 13:05 Made another step -- since r38653, added TChartExtentHistory helper class. Together with PrevLogicalExtent it is enough to implement "undo zoom" -- see "extent" demo since r38656 for an example. ---------------------------------------------------------------------- CM630 · 2012-09-17 06:25 I tried it. I feel like something is wrong- history shall be reset at some place, but I still do not know when. I will have to think  Edit: I think I found it- pressing with the left mouse buuton did not act as clicking "Previous extent". For my particular purposes (probably) I will call zoom out  externally, but for most purposes zoom out one step could be desired as default behaviour? Surely, I will have to inspect it some more. Also, when you have AnimationSteps>1 you have all the point during the animation stored in the history buffer. I see no reason why it should be this way. I do not feel like using AnimationSteps, so I do not consider my opinion significant. ---------------------------------------------------------------------- Ask · 2012-09-17 07:24 Yes, what exactly "previous extent" means needs to be configured specifically for each application. This is why I implemented it as a separate class, not simply "TChart.ExtentHistory" as I intended at first. You can, for example, add history states not from OnExtentChanged handler as in the demo, but from your tool's MouseDown/MouseUp handler to define whether you want animation steps to be part of history, or not.