Jump to content
Software FX Community

ZoomMode.Off, it didn't work.


Choyee

Recommended Posts

Hi,

I've been working on continuous zooming method as ChartFX7 toolbar's zoom menu does.

I figured that if I want to zoom some specific area of the chart I have to first set "Chart.Zoom.Mode = ZoomMode.Selection" then drag the mouse where I want to be zoomed.

Here's the question, what if I clear the zoom mode with "ZoomMode.Off" to zoom out before dragging the mouse when ZoomMode is stiil Selection..

It's like this.

Step 1 : chart1.Zoom.Mode = ZoomMode.Selection;

Step 2 : You drag the mouse on the chart.

Step 3 : Use step 1 in a MouseUp event handler to keep zoom mode as Selection.

private void RunChart_MouseUp(object sender, MouseButtonEventArgs e)

{

if (_isZoomMode)

{

RunChart.Zoom.Mode = ZoomMode.Selection;

RunChart.Zoom.Style = ZoomStyle.Map;

}

}

Step 4 : You clear the zoom mode using "ZoomMode.Off;"

In this case, the chart keeps its zoom state as selection mode.

What should I do to zoom out?

Link to comment
Share on other sites

This bug has been fixed on build 3477 or later. Now setting ZoomMode.Off will zoom out even when set before the drag process. If you want to provide a button that "stays" in the zoom level you can set ZoomMode.Zoomed.

You can download our most recent hotfix here.

Regards,

JuanC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...