Page 1 of 1

Increasing Click tolerance for Color Band?

Posted: Mon Sep 09, 2013 5:42 am
by 15664974
Hi TeeChart forum folks,
I'm in need of a Color Band Drag where the upper and lower sizing grip areas are larger than a few pixels height, owing to the chart being used on an HMI touch screen application in a rugged dynamic environment where the operator may be using gloves or otherwise not have the time or calm situation to find the sizing grip easily. Changing the color band width does not change the click tolerance, as I have found out.

The Color Line has the ColorLineClickTolerance property which is exactly what I want. However that doesn't seem to be available for Color Band Drag unfortunately.

I'd settle for a workalike of upper and lower Color Lines with a large ClickTolerance for both, if there was some way of color-filling in the region between them? Is that possible?
A search through the forum archives for 'band tolerance, between color line fill' and other things I thought of did not lead to any suggestions for me.
I'm using the .NET chart, and am a TeeChart newbie, so any pointers or ideas welcomed.

Re: Increasing Click tolerance for Color Band?

Posted: Tue Sep 10, 2013 1:02 am
by 15664974
Never mind, I found it.. didn't realise the Color Band has a StartLine and EndLine aggregated in it. This seems to work (tried in the ColorBandDrag sampler app):
this.colorBand1.StartLine.ColorLineClickTolerance = 20;
this.colorBand1.EndLine.ColorLineClickTolerance = 20;

Re: Increasing Click tolerance for Color Band?

Posted: Tue Sep 10, 2013 11:37 am
by yeray
Hi,

I'm glad to hear you found it. Thanks for sharing.