No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jens Ramlow
Newbie
Newbie
Posts: 13
Joined: Fri Sep 22, 2017 12:00 am
Location: Berlin, Germany

No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

Post by Jens Ramlow » Fri Oct 06, 2017 11:24 am

Hello Steema team,

I'm using Steema's TeeChart.WPF in a third party COM+ application with .NET wrapper.
My task is to implement a .NET based WPF control including a more or less complex chart.

The chart contains three Series from TeeChart.WPF.Styles.Line and TeeChart.WPF.Styles.Points.
From the tutorial I have implemented the following statement (just this; nothing more) to enable zoom functionality within the chart.

Code: Select all

C#
Steema.TeeChart.WPF.Zoom ChartZoom = new Steema.TeeChart.WPF.Zoom(MainChart.Chart);
Doing so, zooming with the left mouse button and panning with the right mouse button is working perfect.
BUT there is no rectangle or any other visual effect shown, when zooming or panning. The chart is just zoomed in after doing the mouse - but you have to guess about the toom area.

Do you have any idea how to influence the zoom area rectangle which is shown when I run the examples from XAML WPF demo?
Note: All the charting is made at runtime programmatically.

Thank you for any help on this.
Best, Jens

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

Post by Christopher » Fri Oct 06, 2017 2:14 pm

Hello Jens,

There's no need to create an instance of the Zoom class - you will be able to modify zoom characteristics using the following code:

Code: Select all

    private void InitializeChart()
    {
      Bar series = new Bar(tChart1.Chart);
      series.FillSampleValues();

      tChart1.Zoom.Direction = ZoomDirections.Both;
      tChart1.Zoom.Brush.Visible = true;
      tChart1.Zoom.Brush.Color = Utils.FromArgb(150, Colors.Red);
      tChart1.Zoom.Pen.Visible = true;
      tChart1.Zoom.Pen.Color = Utils.FromArgb(150, Colors.Blue);
    }
Best Regards,
Christopher Ireland / 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

Jens Ramlow
Newbie
Newbie
Posts: 13
Joined: Fri Sep 22, 2017 12:00 am
Location: Berlin, Germany

Re: No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

Post by Jens Ramlow » Fri Oct 06, 2017 3:03 pm

Hello Christopher,

Thank you for the idea.
Unfortunately, it does not change the behavior. There is still no rectangle visible.

Do you have further thoughts how to bring the zoom-rectangle to visibility?
- Maybe change a Z-Order or something special?
- Or using something else instead of the built-in rectangle?

Best, Jens

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

Post by Christopher » Mon Oct 09, 2017 8:17 am

Hello Jens,

This works in a simple example program using the latest version of TeeChart.WPF.dll. A short GIF of this working can be seen here:

https://drive.google.com/uc?id=0B8CdIOD ... U5NQXVBM2c

can you please confirm that you can reproduce this behavior at your end?
Best Regards,
Christopher Ireland / 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

Jens Ramlow
Newbie
Newbie
Posts: 13
Joined: Fri Sep 22, 2017 12:00 am
Location: Berlin, Germany

Re: No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

Post by Jens Ramlow » Fri Oct 13, 2017 6:03 pm

Hello Christopher,

Sure, the example is working fine in general and when used outside of the target application.
But as soon as I have integrated the example in the COM+ application with .NET wrapper the rectangle is not visible anymore.
Maybe there is a special in the WPF layer of the COM+ application.

So if we have no more ideas to show a zoom-area beside .Zoom.Brush and .Zoom.Pen, I cannot make use of the zoom functionalities here.

Thank you for supporting on this.
Best, Jens

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

Post by Christopher » Mon Oct 16, 2017 7:38 am

Hello Jens,

The TeeChart.WPF.dll uses Adorners in its implementation of the Zoom rectangle - I'm not sure if these work in COM+.
Best Regards,
Christopher Ireland / 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

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

Post by Christopher » Mon Oct 16, 2017 9:55 am

Hello again Jens,
Christopher wrote: The TeeChart.WPF.dll uses Adorners in its implementation of the Zoom rectangle - I'm not sure if these work in COM+.
could you please upload a very simple example using your COM+ wrapper to:
http://steema.net/upload/

in this way we can have a look at what is happening.
Best Regards,
Christopher Ireland / 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

Jens Ramlow
Newbie
Newbie
Posts: 13
Joined: Fri Sep 22, 2017 12:00 am
Location: Berlin, Germany

Re: No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

Post by Jens Ramlow » Tue Oct 17, 2017 7:59 am

Hello Christopher,

Thank you for sharing the information.
The TeeChart.WPF.dll uses Adorners in its implementation of the Zoom rectangle - I'm not sure if these work in COM+.
It seems to me that this is the reason for not being displayed within my application. Not a problem of Steema's TeeChart, but a problem of the COM+ .NET wrapper.
could you please upload a very simple example using your COM+ wrapper
Unfortunately this is not possible.
We are using a dongle-licensed development environment for an industrial SCADA (control) solution.
Without this environment the WPF is not able to run. And the environment is running the WPF later.

From my perspective you are not in charge to resolve the problem.
Instead, I will forward this topic to the developers of the COM+ SCADA system environment.
They will explain to me why Adorners are not working inside of the .NET wrapper.

So thank you again. I will come back to you if I'm able raising more ideas how to deal with the "not displaying adorners" problem.

Yours, Jens

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: No visible zoom rectangle with Steema.TeeChart.WPF.Zoom

Post by Christopher » Tue Oct 17, 2017 12:33 pm

Hello Jens,
Jens Ramlow wrote: So thank you again. I will come back to you if I'm able raising more ideas how to deal with the "not displaying adorners" problem.
Thank you Jens for your consideration. Please do not hesitate to let us know if we can be of further help here.
Best Regards,
Christopher Ireland / 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

Post Reply