Mason, I can't reproduce this is a new D2010 (Update 4 & 5) VCL Forms application on Windows XP SP2. Here's what I did:
- File|New|VCL Forms Application
- Dropped a TImage and TLabel on the form
- Picked a random image out of the default images folder (GreenBar.bmp) for the TImage.Picture
- Double-clicked the TImage.OnMouseMove event in the Object Inspector, and added the following code:
procedure TForm1.Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
Label1.Caption := Format('X: %d Y: %d', [X, Y]);
end;
- Ran the application (F9).
The label showed "Label1" (the default caption, of course) until I first moved the mouse over the image. It then updated correctly to show the X and Y coordinates. As soon as I moved the mouse pointer out of the image, the label stopped updating.
It appears to be something in your specific code, or something specific to the version of Windows you're using, and not Delphi 2010 itself.