Page 1 of 1
selector tool and zoom rectangle
Posted: Thu Apr 03, 2008 6:20 pm
by 13045128
I setup my application to use the selector tool and when the top axis is clicked a new modal form dialog is displayed.
Once I close the modal dialog the zoom rectangle is displayed within the chart window. I have to click on the chart window to get rid of it.
How can I get rid of the zoom rectangle outline from displaying within the chart Window
Posted: Fri Apr 04, 2008 9:39 am
by narcis
Hi history,
I'm not able to reproduce the problem here using this code:
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private Steema.TeeChart.Tools.Selector selector1;
private Steema.TeeChart.Editor edit1;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.FastLine fastLine1 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
fastLine1.FillSampleValues();
fastLine1.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Both;
selector1 = new Steema.TeeChart.Tools.Selector(tChart1.Chart);
selector1.AllowDrag = true;
selector1.AllowResizeChart = true;
selector1.Selected += new Steema.TeeChart.Tools.SelectorSelectedEventHandler(selector1_Selected);
edit1 = new Steema.TeeChart.Editor(tChart1);
}
void selector1_Selected(object sender, EventArgs e)
{
Steema.TeeChart.ChartClickedPart MyPart = selector1.Part;
if (MyPart.Part == Steema.TeeChart.ChartClickedPartStyle.Axis)
{
edit1.ShowModal();
}
}
Could you please modify it or send us a simple example project we can run "as-is" and let us know the exact steps we should follow to reproduce the problem here?
You can either post your files at news://
www.steema.net/steema.public.attachments newsgroup or at our
upload page.
Thanks in advance.
Posted: Fri Apr 04, 2008 11:46 am
by 13045128
Narcis
I made the changes and was able to reproduce on the sample project. The project has been uploaded to your site.
Posted: Fri Apr 04, 2008 2:13 pm
by narcis
Hi history,
Thanks for the example project.
This seems a bug to me and what's causing it is this line:
Code: Select all
selector1.Cursor = Cursors.Arrow;
Commenting it in solves the issue. I have added the defect (TF02012943) to the bug list to be fixed.
In the meantime, the only workaround I can think of is changing the zooming key/button combination, for example:
Code: Select all
tChart1.Zoom.KeyShift=Keys.Shift;
Posted: Fri Apr 04, 2008 2:25 pm
by 13045128
The issue we have at the moment is that our customers want the zoom to remain as is using the click and move.
We can wait for a fix.
Thanks