Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Label Transparent Problem (https://www.delphipraxis.net/66616-label-transparent-problem.html)

E307 1. Apr 2006 13:05


Label Transparent Problem
 
Wenn ich bei einem Label in meinem Projekt die Eigenschaft Transparent := true schalte, passiert das auch zur Entwicklungszeit. In der Laufzeit ist das Label allerdings wieder nicht Transparent! Habe ich irgendetwas übersehen?

MrKnogge 1. Apr 2006 13:41

Re: Label Transparent Problem
 
Normalerweise sollte es Transparent sein.
Das Problem tritt bei mir auch nicht auf.

Machst du zur Laufzeit irgendetwas mit dem Label ?

gruss

Nicodius 1. Apr 2006 13:52

Re: Label Transparent Problem
 
vl hast du irgendwo die transparentcolor umgeschalten?

wenn es weiß ist dürfte es gehen...

E307 1. Apr 2006 15:37

Re: Label Transparent Problem
 
Zitat:

Machst du zur Laufzeit irgendetwas mit dem Label ?
Ja, Caption wird oft geändert

Matze 1. Apr 2006 16:01

Re: Label Transparent Problem
 
Hi. Also nach Ablauf dieser Prozedur bleibt es bei mir immer noch transparent. :gruebel:

Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
  i: Integer;
begin
  Label1.Transparent := true;
  Label1.Update;

  for i := 1 to 2000000 do
  begin
    Label1.Caption := IntToStr(i);
    Application.ProcessMessages;
  end;
end;

E307 6. Apr 2006 17:34

Re: Label Transparent Problem
 
Bei mir nicht! Bei meinem Projet ist übrigens ein Hintergrundbild dabei und das Label bekommt sein Caption über einen Timer mit Interval := 70.


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:47 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz