![]() |
Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming! |
⤷ Change meanings of mouse buttons
Use SystemParametersInfo function with SPI_SETMOUSEBUTTONSWAP parameter.
procedure TForm1.Button1Click(Sender: TObject);
begin
SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP, 1, nil, 0);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
SystemParametersInfo(SPI_SETMOUSEBUTTONSWAP, 0, nil, 0);
end;
-
More for developers