AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Transparentes TCustomControl

Ein Thema von Gausi · begonnen am 25. Sep 2023 · letzter Beitrag vom 26. Sep 2023
 
Kas Ob.
Online

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

AW: Transparentes TCustomControl

  Alt 26. Sep 2023, 10: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
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:01 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz