TColorBandTool and OnDragLine event problem
Posted: Tue Nov 15, 2011 4:59 pm
Hello. I have TeeChart 8.08. I have a cahrt with a TColorBandTool. I have assigned OnDragLine events to StartLine and EndLine of TColorBandTool. If I assign these events, then the colorBand is not repainted while dragging. If I remove the events, everything works again. this is mi code:
Am I doing something wrong?
Code: Select all
TColorBandTool* band = new TColorBandTool(...);
band->Axis = Chart1->BottomAxis;
band->OnClick = BandaSelecClick;
band->OnResized = rectResized;
band->StartLine->OnDragLine = SelectDrag; /******** If you remove this line then everything works ***********/
band->StartLine->Active = true;
band->StartLine->AllowDrag = true;
...