So far, the functionality of the component is fine, but if all instances are
deleted at design time, the resize handles remain, they cannot be deleted
except by adding another control or changing focus (if there is another
control on there, focus jumps automatically and there isn't a problem).
I did a bit of searching and found references to lack of resources
(unlikely, I'm using a 1.2Ghz Athlon with 512MB Ram and over 130GB of
storage).
I also found a post suggesting locking the canvas during painting which I
tried but it doesn't appear to help.
Can anyone suggest a way around it?
procedure Paint;
var
Dest: TRect;
begin
Canvas.Lock;
Dest := Rect(0, 0, TileImage.Width, TileImage.Height);
with Canvas do
begin
CopyMode := cmSrcCopy;
StretchDraw(Dest, TileImage);
end;
SetBounds (Left,Top,Width,Height); // call to function which sets the region
Canvas.Unlock;
end;
"Kris Kelly" <kris...@hotmail.com> wrote in message
news:xdEK7.10074$%j6.9...@news1.cableinet.net...
"Kris Kelly" <kris...@hotmail.com> wrote in message
news:xdEK7.10074$%j6.9...@news1.cableinet.net...
"Kris Kelly" <kris...@hotmail.com> wrote in message
news:xdEK7.10074$%j6.9...@news1.cableinet.net...
"Kris Kelly" <kris...@hotmail.com> wrote in message
news:xdEK7.10074$%j6.9...@news1.cableinet.net...
"Kris Kelly" <kris...@hotmail.com> schreef in bericht
news:xdEK7.10074$%j6.9...@news1.cableinet.net...
Shahzad