Zoom rectangle misplaced at 150% DPI

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
schiplonkar
Newbie
Newbie
Posts: 2
Joined: Tue Feb 19, 2019 12:00 am

Zoom rectangle misplaced at 150% DPI

Post by schiplonkar » Thu Feb 13, 2020 2:51 pm

Hello,

We are using Steema.TeeChart.Net (4.2019.5.15) version in windows forms application. The zoom rectangle on the chart is misplaced when the windows display setting is 125 or 150%.

If you want to reproduce this issue then just create a simple project with T CHart control on the form. Change the display settings for the monitor to use 150% and run the application. Use the mouse to select a region on the chart to zoom. You can see the dashed rectangle is not where the mouse pointer is used to drag the rectangle.

I believe there is an open bug # 814 with the same issue. Please let me know if there is a fix or a workaround for this issue.

Thanks

Sanjay

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

Re: Zoom rectangle misplaced at 150% DPI

Post by Christopher » Fri Feb 14, 2020 7:44 am

Hello Sanjay,

In the issue report here:
http://bugs.teechart.net/show_bug.cgi?id=814

In my reply there is a link to a StackOverflow question on the same theme, and on StackOverflow you can see that there is relatively recent possible answer to the problem here - have you tried this technique in your application?
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

schiplonkar
Newbie
Newbie
Posts: 2
Joined: Tue Feb 19, 2019 12:00 am

Re: Zoom rectangle misplaced at 150% DPI

Post by schiplonkar » Mon Feb 17, 2020 9:34 pm

Hello,

I have tried the SetProcessDPIAware solution. That did not seem to have any effect. The rectangle dotted line does not appear close to the actual mouse pointer. Please let me know if you have another workaround.

Thanks

Sanjay

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

Re: Zoom rectangle misplaced at 150% DPI

Post by Christopher » Tue Feb 18, 2020 8:38 am

Hello Sanjay,

please be aware that this is not a TeeChart issue, but is an issue with application settings for DPI. Another possibility is to use the dpiAware manifest settings about which you can read here and 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

Mikej
Newbie
Newbie
Posts: 3
Joined: Wed May 23, 2007 12:00 am

Re: Zoom rectangle misplaced at 150% DPI

Post by Mikej » Thu Jun 18, 2020 2:08 am

Was wondering if this ever got resolved. I am seeing a similar issue. Our main application that consumes the TeeChart control is DPI Aware. We had to do many things to fix issues when the Display settings were set to > 100%.

However in TeeChart, I am seeing the Zoom Rectangle actually showing up on my 2nd monitor which is external to my laptop screen where the TeeChart is located.

While I am using TeeChart 3.5, it seems to be a the same issue you are seeing. Was hoping to hear if this issue was resolved.

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

Re: Zoom rectangle misplaced at 150% DPI

Post by Christopher » Thu Jun 18, 2020 7:59 am

Mikej wrote:
Thu Jun 18, 2020 2:08 am
While I am using TeeChart 3.5, it seems to be a the same issue you are seeing. Was hoping to hear if this issue was resolved.
As I explained in my last message, this is not a TeeChart issue (an issue pertaining to an app component), but is an issue of the configuration of the app itself.
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