Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 QCChart3D 3D Charting Tools for .Net (VB and C#)
 How to detect a zoom begin and end?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
soundar Posted - 08 Aug 2015 : 22:05:47
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.
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 10 Aug 2015 : 09:13:44
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();
            }

        }

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07