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
selector tool and zoom rectangle
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi history,
I'm not able to reproduce the problem here using this code:
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.
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();
}
}
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi history,
Thanks for the example project.
This seems a bug to me and what's causing it is this line:
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:
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;
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;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |