Autor Beitrag
jsbach
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 53

Win XP
D5 Ent
BeitragVerfasst: So 03.04.05 22:44 
Hallo, ich möchte das ein Editfeld mit schwarzer Schrift ausgegeben wird obwohl Enabled=false gesetzt ist. Die Schrift erscheint dann grau. Ich habe in einem anderen Prgramm gesehen das so etwas möglich ist, leider war kein Sourcecode dabei. Es kann auch ein anderes Objekt sein, es soll aber wie ein Editfeld aussehen.

MfG jsbach
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mo 04.04.05 07:08 
Ich würde Tabstop auf False und ReadOnly auf True setzen, dann ist die Schrift schwarz, kann aber nicht geändert werden.

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 04.04.05 07:27 
Und wenn du vermeiden willst, das du mit der Masu rein kannst, legst du das Edit-Feld in ein Panel und disablest (komisches Wort) das Panel.
jsbach Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 53

Win XP
D5 Ent
BeitragVerfasst: Mo 04.04.05 20:45 
Das mit dem Panel ist eine super Idee, doch wie kann ich meine Editfelder nachträglich auf das Panel setzen? Hat bis jetzt nur funktioniert wenn ich ein neues Editfeld draufsetze.

MfG jsbach
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 04.04.05 20:52 
Edit markieren, STRG-X, Panel anklicken, STRG-V, und ggf. neu positionieren. Fertig :wink:

_________________
We are, we were and will not be.
Mike19
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: Mo 04.04.05 20:54 
Hallo,

Du kannst das Edit Feld in der Objekthierarchie einfach auf das Panel ziehen.