Einzelnen Beitrag anzeigen

Kas Ob.

Registriert seit: 3. Sep 2023
346 Beiträge
 
#3

AW: Transparentes TCustomControl

  Alt 26. Sep 2023, 11:33
I figured another solution that might solve the whole flickering thing.

try this
Code:
procedure TForm1.FormPaint(Sender: TObject);
begin
  Self.Canvas.CopyRect(Rect(Image1.Left,Image1.Top,Image1.Width,Image1.Height),Image1.Picture.Bitmap.Canvas,Image1.ClientRect);
end;
And make sure Image1.Visible := False; of course adjust the drawing rectangles accordingly, mine are might be off, also ImageBox should have TBitmap in the above solution.

I think you got the idea, and you can figure the best solution for your self, the idea here is we flatten everything under your Dingos (just like PhotoShop flattening the layers) on the form forcing it to draw the same content instead of the empty black box.
Kas
  Mit Zitat antworten Zitat