Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.05.09;
Скачать: CL | DM;

Вниз

Чувствительность курсора мыши к перемещениям   Найти похожие ветки 

 
Анонимщик ©   (2002-03-05 10:43) [0]

Как можно программно изменить чувствительность курсора мышки к перемещениям?


 
copyr25 ©   (2002-03-05 17:14) [1]

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
procedure FormCreate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.DFM}
var check: Array[0..2] of Integer;

const mspeed: Array[0..6,0..2] of Integer=
((0, 0, 0), (10, 0, 1), (7, 0, 1),
(4, 0, 1), (4, 10, 2), (4, 7, 2),
(4, 4, 2));
tempo: Integer = - 1;

procedure step;
begin
inc(tempo);
if tempo > 6 then tempo := 0;
systemparametersinfo(SPI_SETMOUSE, 1, @mspeed[tempo], 0);
form1.label1.caption :=
"Step: " + inttostr(tempo + 1);
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
systemparametersinfo(SPI_GETMOUSE, 0, @check, 0);
step;
end;

procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
systemparametersinfo(SPI_SETMOUSE, 1, @check, 0);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
step;
end;

end.


 
Анонимщик ©   (2002-03-05 19:33) [2]

Спасибо, даст бог, и я тебе что-нибудь отвечу, запишу тебя сейчас в красненькую книжечку, а остальным - болт.



Страницы: 1 вся ветка

Текущий архив: 2002.05.09;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.013 c
4-26293
Ted
2002-03-06 09:57
2002.05.09
Помогите, плиз.......отключить локальные винты


3-25996
Ser_Kham1
2002-04-15 17:39
2002.05.09
DOA и ADO


1-26145
Reals
2002-04-24 18:14
2002.05.09
Нужна функция по проверке E-Mail...


1-26147
Krok
2002-04-24 11:28
2002.05.09
Цвет выделения в TEdit


1-26165
d_oleg
2002-04-25 10:48
2002.05.09
Application Icon