Not sure on what to make title please edit if needed. I have a procedure
procedure TFZone1Mod7.ChangeText(sender: TObject);
var
ShapeOrderNo: integer;
FoundComponent: TComponent;
begin
if TryStrToInt(copy(TShape(Sender).Name,6,MaxInt),ShapeOrderNo) then
begin
FoundComponent := FindComponent('label'+inttostr(ShapeOrderNo+12));
if (FoundComponent is TLabel) then
Label25.Caption := TLabel(FoundComponent).Caption
else
showmessage('not found');
end;
showmessage(TShape(sender).Name);
end;
so i call the procedure on a Shape1MouseEnter. So i would think (Self) would send shape1 but it dont it sends the form(TFZone1Mod7) How i can get it to send the shape? here is how i am calling it.
procedure TFZone1Mod7.Shape1MouseEnter(Sender: TObject);
begin
changetext(self);
end;