Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi TEdit transparent ohne Komponente (https://www.delphipraxis.net/83373-tedit-transparent-ohne-komponente.html)

luckystar85 1. Jan 2007 15:04


TEdit transparent ohne Komponente
 
Hallo @ all,

ich wollte gern ein paar Edits unter bestimmten Bedingungen transparent machen. Habt ihr da eine Idee wie ich das machen könnte. Ich möchte aber keine neuen Komponenten installieren.

julben 4. Jan 2007 18:53

Re: TEdit transparent ohne Komponente
 
Delphi-Quellcode:
if [Bedingung erfüllt] then Edit1.Visible := false else Edit1.Visible := true
Oder meinst du das anders?

luckystar85 4. Jan 2007 19:24

Re: TEdit transparent ohne Komponente
 
Ja, ich meine so wie beim Label wenn ich da Transparent auf True setze. Das die Füllfarbe verschwindet und man den Hintergrund sieht.

Auf deinen Vorschlag würde ich das sogar verkürzen:
Delphi-Quellcode:
Edit.Visible := Bedingung_erfüllt
Dann spart man sich das If und Else.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:38 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