TStepControl doesn't recognize right mouse click and behaves just like the normal left mouse click.
Are you referring to TAdvSmoothStepControl?
Do you want a special action when clicking with the right-mouse button?
Yes I'm referring to TAdvSmoothStepControl, sorry. I just don't want the right mouse click to do any actions.
Please try the following code:
var
Form1: TForm1;
mb: TMouseButton;
implementation
{$R *.dfm}
procedure TForm1.AdvSmoothStepControl1MouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
mb := Button;
AdvSmoothStepControl1.ReadOnly := (mb = mbRight);
end;
procedure TForm1.AdvSmoothStepControl1MouseMove(Sender: TObject;
Shift: TShiftState; X, Y: Integer);
begin
AdvSmoothStepControl1.ReadOnly := false;
end;
Thank you, fine workaround