valmierietis
Programmer
Hi!
I want to draw rectangles on TImage component imgMain, this is it's `onMouseMove` even:
procedure TfrmMain.imgMainMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
imgMain.Canvas.Pen.Color:=clWhite;
imgMain.canvas.Rectangle(X-10,Y-10,X+10,Y+10);
end;
I wrote in at home, everything was perfect. Then I brought it to my work's computer and I changed nothing, just re-compiled it. And now it flickers when moving mouse over that component (as if it tried to redraw everything or something like that). Why is it so? What to do? Can it be so because at home there is Delphi 7, but at work - Delphi 6? How can I make it normal?
Thank you!
I want to draw rectangles on TImage component imgMain, this is it's `onMouseMove` even:
procedure TfrmMain.imgMainMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
imgMain.Canvas.Pen.Color:=clWhite;
imgMain.canvas.Rectangle(X-10,Y-10,X+10,Y+10);
end;
I wrote in at home, everything was perfect. Then I brought it to my work's computer and I changed nothing, just re-compiled it. And now it flickers when moving mouse over that component (as if it tried to redraw everything or something like that). Why is it so? What to do? Can it be so because at home there is Delphi 7, but at work - Delphi 6? How can I make it normal?
Thank you!