我照书上的例子做的,做的是一个画点图的组件 代码如下
Function TDotImage.MouseOver(x:Integer;y:Integer):Integer;
var i,x,idx,ran:Integer;
begin
Result:=-1;
if FData=nil then Exit;
ran:=Round(FSegX/2);
if ran<3 then ran:=3;
if ran>6 then ran:=6;
i:=Trunc((x-FDotsRects.Left-FSegX/2)/FSegX);
idx:=i;
if(idx>=0)and(idx<FCount)then
一运行就提示[Error]DotImage.pas(47):Undeclared identifier:'MouseOver'
很多函数都显示没定义 这是为什么
Function TDotImage.MouseOver(x:Integer;y:Integer):Integer;
var i,x,idx,ran:Integer;
begin
Result:=-1;
if FData=nil then Exit;
ran:=Round(FSegX/2);
if ran<3 then ran:=3;
if ran>6 then ran:=6;
i:=Trunc((x-FDotsRects.Left-FSegX/2)/FSegX);
idx:=i;
if(idx>=0)and(idx<FCount)then
一运行就提示[Error]DotImage.pas(47):Undeclared identifier:'MouseOver'
很多函数都显示没定义 这是为什么
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货