TCustomTeePanel.CancelMouse

TCustomTeePanel.CancelMouse
TCustomTeePanel

property CancelMouse: Boolean;

Unit
TeeProcs

Description

The CancelMouse property controls when to stop processing mouse click events.

Setting CancelMouse to False inside one of the Chart OnClickxxx events forces the
Chart to continue processing the code of mouse clicks (for example starting the zoom or scroll features).

Setting CancelMouse to False in the Chart OnClickSeries event will continue the zoom
or scroll features after clicking a Series:

procedure TForm1.Chart1ClickSeries(Sender: TCustomChart;
Series: TChartSeries; ValueIndex: Integer; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
// do code when clicking a Series...
// ...

// Tell the chart to do zoom or scroll as default:
Chart1.CancelMouse:=False;
end;