TChart Click problem with form's scrollbar

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

TChart Click problem with form's scrollbar

Post by asupriya » Mon Aug 16, 2010 4:57 am

Hi,

I have multiple Tchart components vertically stacked as shown in the AVI movie
8-15-2010.zip
AVI movie showing the issue with TChart and Form's Scroll bars
(339.89 KiB) Downloaded 470 times
and in this sample project
WindowsApplication1.zip
VS2008 VB.Net Project
(19.29 KiB) Downloaded 424 times
.

When a user clicks on the TChart object that is partly invisible in the screen area, the scroll bar is automatically set to a position to display the clicked TChart object from the top. This is creating an issue if the TChart object is large that it can't be displayed in a 1024x768 screen area without vertical scrollbar. In such a situation, the TChart object always tries to display from the top and it is quickly becoming an annoyance to our users.

Is there a way i can separate the click event and scroll operation so that clicked TChart object won't always be displayed from the top.

Hope I clarified the issue reasonably with AVI screen movie and a project.

Any help is greatly appreciated.

Thanks,

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TChart Click problem with form's scrollbar

Post by Sandra » Mon Aug 16, 2010 10:43 am

Hello asupriya,

I fear that this problem is not a problem of TeeChart, because other controls of Visual Studios affected it too, as you can see it in next example with buttons controls:

Code: Select all

        private void InitializeChart()
        {

           Button[]  Buttons = new Button[3];

            for (int i = 0; i < Buttons.Length; i++)
            {
                Buttons[i] = new Button();
                this.Controls.Add(Buttons[i]);
                Buttons[i].Size = new Size(739, 436);
                Buttons[i].Location = new Point(0, i * 436);
                Buttons[i].Text = "Button:"+i.ToString();
            }

            this.AutoScroll = true;
        }
Moreover, I recommend you, consult next link to get more information about AutoScroll.


Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply