Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 QCChart3D 3D Charting Tools for .Net (VB and C#)
 How to detect a zoom begin and end?
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

soundar

51 Posts

Posted - 08 Aug 2015 :  22:05:47  Show Profile  Reply with Quote
I am using your ChartZoom object to let the user zoom in out of a graph. This graph has a lot of points (more than a million) so it takes a while to zoom in and out (on the left and right clicks). I want to show the hourglass during this period. Is it possible? I don't see any events associated with the zoom object, such as, ZoomBegin, ZoomEnd etc.
Thanks.

quinncurtis

1586 Posts

Posted - 10 Aug 2015 :  09:13:44  Show Profile  Reply with Quote
You can subclass the ChartZoom class, and process your cursor in the OnMouseDown and OnMouseUp overrides. A


        private class ZoomWithCursor : ChartZoom
        {

            public ZoomWithCursor(ChartView component, CartesianCoordinates transform, double zpos, bool brescale):
                base(component, transform, zpos, brescale)
            {
            }
            public override void OnMouseDown(MouseEventArgs mouseevent)
            {
                // Your routine
                SetCursor();

                // if right mouse button, pop zoom stack one level
                if ((mouseevent.Button & MouseButtons.Right) != 0)
                    this.PopZoomStack();
                else
                    base.OnMouseDown(mouseevent);
            }

            public override void OnMouseUp(MouseEventArgs mouseevent)
            {
                base.OnMouseUp(mouseevent);

                // Your routine
                 RestoreCursor();
            }

        }
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07