TColorBandTool limits
Posted: Wed Jan 07, 2015 11:29 am
Hi,
I am using TColorBandTool as a special data selector on my chart. It looks like a resizable yellow rectangle (start and end lines are allowed to be dragged). That rectangle can be any size now ( depends upon values StartValue, EndValue) but I would like to limit that.
My question is if it's possible to limit band width in a simple way?
Let's say I would like to limit band width to 10px (10px between StartValue and EndValue). I expect that whenever I drag one side of it, it will stop resizing when it reaches minimum size of 10px and it will continue resizing when size will be greater than that.
I hope I was clear enough. Thank you in advance.
Kind regards,
Aljosa
I am using TColorBandTool as a special data selector on my chart. It looks like a resizable yellow rectangle (start and end lines are allowed to be dragged). That rectangle can be any size now ( depends upon values StartValue, EndValue) but I would like to limit that.
My question is if it's possible to limit band width in a simple way?
Let's say I would like to limit band width to 10px (10px between StartValue and EndValue). I expect that whenever I drag one side of it, it will stop resizing when it reaches minimum size of 10px and it will continue resizing when size will be greater than that.
I hope I was clear enough. Thank you in advance.
Kind regards,
Aljosa