菜鸟问题:onmousedown(5分)

  • 主题发起人 主题发起人 hongtaosh
  • 开始时间 开始时间
H

hongtaosh

Unregistered / Unconfirmed
GUEST, unregistred user!
我想在一个Image画布上单击鼠标左键,
在Edit1和Edit2中显示单击点处的X和Y坐标,怎么我的显示不了啊?
请帮忙了,各位!
 
Edit1.text:=inttostr(x);
Eidt2.text:=inttostr(y);
 
procedure TtForm7.tImage1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
Edit6.Text:=IntToStr(X);
Edit7.Text:=IntToStr(Y);
end;

鼠标点了半天,怎么一点反应都没有?
 
我的行啊!
 

Similar threads

S
回复
0
查看
838
SUNSTONE的Delphi笔记
S
S
回复
0
查看
799
SUNSTONE的Delphi笔记
S
D
回复
0
查看
850
DelphiTeacher的专栏
D
D
回复
0
查看
862
DelphiTeacher的专栏
D
D
回复
0
查看
764
DelphiTeacher的专栏
D
后退
顶部