I'm looking at
onMouseLeave to see if it solves some some display issues for TCheckListBoxes that I'm using, but I'm doing something stupid.
Method is defined as:
procedure TBasePanel.MouseLeave(Sender: TObject);
begin
writeln('left a box');
end;
In the constructor for TBasePanel I have:
Box1:= TFoxCheckBox.Create(Self);
with Box1 do begin
other stuff...
OnMouseMove:= @DriveHint;
OnMouseLeave:= @MouseLeave;
end;
but I'm getting a compile error on @MouseLeave:
basepanel.pas(211,23) Error: Incompatible types: got "<procedure variable type of procedure of object;Register>" expected "<procedure variable type of procedure(TObject) of object;Register>"
Not obvious to me what I'm doing wrong?