Вниз
Скачать: CL | DM;

MouseDown,MouseUp?   Найти похожие ветки 

← →
Ivolg   (2004-08-09 19:44) [0]

Помогите плизз. Вопрос конечно Дурацкий но всё же! Есть такой код:

procedure TForm1.Image1MouseDown(Sender: TObject; Button: TMouseButton;Shift: TShiftState; X, Y: Integer);
begin
if button=mbLeft then
caption:="LeftDown";
if button=mbRight then begin
caption:="RightDown";
end;
end;
end;

procedure TForm1.Image1MouseUp(Sender: TObject; Button: TMouseButton;
 Shift: TShiftState; X, Y: Integer);
begin
    if button=mbLeft then
    caption:="LeftUp";
    if button=mbRight then begin
    caption:="RightUp";
   
end;
end;
end;
Проиходит какая то чертавщина. Нажимаю на правую появляется LeftUp или LeftDown. Короче одним словом глючит. ПОМОГИТЕ ПОЖАЙЛУСТО! ОЧЕНЬ НАДО!!!!!!!!! СПАСИБО!!!!


← →
Мастер ©   (2004-08-09 19:52) [1]

У тебя лишние "end"

procedure TForm1.Image1MouseDown(Sender: TObject; Button: TMouseButton;
 Shift: TShiftState; X, Y: Integer);
begin
 if button=mbLeft then caption:="LeftDown";
 if button=mbRight then caption:="RightDown";
end;

procedure TForm1.Image1MouseUp(Sender: TObject; Button: TMouseButton;
 Shift: TShiftState; X, Y: Integer);
begin
 if button=mbLeft then caption:="LeftUp";
 if button=mbRight then caption:="RightUp";
end;



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

Скачать: CL | DM;



Память: 0.44 MB
Время: -0.971 c
1-1091635176
zeppelin
2004-08-04 19:59
2004.08.22
Преобразование 16->10


4-1089261647
Ozone
2004-07-08 08:40
2004.08.22
PostMessage


1-1092066291
Ivolg
2004-08-09 19:44
2004.08.22
MouseDown,MouseUp?


1-1092128680
Anton777
2004-08-10 13:04
2004.08.22
Ключ реестра


1-1092026047
Новичек
2004-08-09 08:34
2004.08.22
Преобразование типов.




   Наверх