Possible to make Axisarrows larger?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
LibDundas
Newbie
Newbie
Posts: 55
Joined: Fri Mar 20, 2009 12:00 am

Possible to make Axisarrows larger?

Post by LibDundas » Thu Jul 02, 2009 10:51 pm

Hello, I am creating a touch screen application and I would like to use some sort of axis arrow so the user can scroll a chart. I see the Pen.Width, but this is only for the outline of the arrow and does not extend the clickable surface. Is there any way to make the axis arrow clickable surface larger?

Thanks

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

Re: Possible to make Axisarrows larger?

Post by Sandra » Fri Jul 03, 2009 10:31 am

Hello LibDundas,

I find a solution for increase area clickable, using property axisarrow.lenght. This property increase size of axisarrow, therefore increase area clickable and I think you can serve for solve your issue . On the other hand this solution is not perfect because area have zones restricted, so I have added your issue in the list of Feature request, to have in mind to new versions of TeeChartFor .NET.

Please check that next code is that you want for your application:

Code: Select all

         Steema.TeeChart.Tools.AxisArrow axisArrow;
        Steema.TeeChart.Styles.FastLine fast;
        private void InitializeChart()
        {
            fast = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
            axisArrow = new Steema.TeeChart.Tools.AxisArrow(tChart1.Chart);
            fast.FillSampleValues(10);
            axisArrow.Axis = tChart1.Axes.Bottom;
            axisArrow.Length = 50;
            axisArrow.Pen.Width = 7;
            axisArrow.Pen.Color= Color.Red;
            axisArrow.ScrollPercent = 20;
            axisArrow.Brush.Color = Color.Red;
            
        }

I hope that will helps.

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

LibDundas
Newbie
Newbie
Posts: 55
Joined: Fri Mar 20, 2009 12:00 am

Re: Possible to make Axisarrows larger?

Post by LibDundas » Fri Jul 03, 2009 1:04 pm

Hi Sandra, thanks for the response. The issue still exists with your solution though. The major problem with the axisArrows is that the clickable area (along the length of the arrow) is only a couple pixels wide.

Currently I have the .Length property set to 65, but it is still very hard to find the clickable space along the length.

Is it possible to use other images that may provide a larger space?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Possible to make Axisarrows larger?

Post by Narcís » Fri Jul 03, 2009 1:57 pm

Hi LibDundas,

I'm afraid this is not possible for now. That's the feature Sandra added to the wish-list to be considered for inclusion in future releases.
Best Regards,
Narcís Calvet / 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

LibDundas
Newbie
Newbie
Posts: 55
Joined: Fri Mar 20, 2009 12:00 am

Re: Possible to make Axisarrows larger?

Post by LibDundas » Mon Jul 06, 2009 3:57 pm

fyi to anyone in the future: As a solution to this, I just added a button on the form that toggles the LEFT mouse button between the ZOOM and PAN features..this way the user has full panning abilities rather than per axis arrow clicks.

Post Reply