在DELPHI中我绘制了一个图形,但是我想实现的是当鼠标在图形上某点是他就自动给出提示信息,鼠标的坐标是多少??请各位大虾帮忙
L lvdch Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-26 #1 在DELPHI中我绘制了一个图形,但是我想实现的是当鼠标在图形上某点是他就自动给出提示信息,鼠标的坐标是多少??请各位大虾帮忙
N newmoonfaw Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-26 #2 窗体上加一个stb:TStatusbar 在你的控件的onMouseMove事件中加上下面代码 begin stb.SimpleText :='目前位置('+inttostr(x)+','+inttostr+')'; end;
窗体上加一个stb:TStatusbar 在你的控件的onMouseMove事件中加上下面代码 begin stb.SimpleText :='目前位置('+inttostr(x)+','+inttostr+')'; end;