Page 1 of 1

Possible to make Axisarrows larger?

Posted: Thu Jul 02, 2009 10:51 pm
by 13052841
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

Re: Possible to make Axisarrows larger?

Posted: Fri Jul 03, 2009 10:31 am
by 10050769
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,

Re: Possible to make Axisarrows larger?

Posted: Fri Jul 03, 2009 1:04 pm
by 13052841
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?

Re: Possible to make Axisarrows larger?

Posted: Fri Jul 03, 2009 1:57 pm
by narcis
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.

Re: Possible to make Axisarrows larger?

Posted: Mon Jul 06, 2009 3:57 pm
by 13052841
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.