Autor Beitrag
jaenschi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 89

Win XP, Debian
D7
BeitragVerfasst: Do 24.02.05 17:38 
Hallo,

ich möchte ein RichEdit dynamisch erstellen. Hab dafür folgenden Code geschrieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
with TRichEdit.Create(Application) do
  begin
    height:=320;
    width:=350;
 end;

jetzt sagt er mir beim compilen "Undeclared identifier 'TRichEdit'...".
Muss ich dafür noch eine Unit einbinden oder was fehlt da?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Do 24.02.05 17:41 
Ja, musst du. Schau einfach in der OH nach. Außerdem musst du dem Control noch einen Parent zuweisen...

AXMD
Benutzername
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 210

Win XP Pro
Delphi 7 PE, D2005 Prof. SSL
BeitragVerfasst: Do 24.02.05 17:42 
TRichEdit befindet sich in der Unit ComCtrls ;-)

TRichedit im Code eintippen, Cursor drauf, F1, links oben gucken ;-)