Autor Beitrag
infomio
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 110

Win xy

BeitragVerfasst: Fr 11.04.03 13:31 
Hallo,

bin Anfänger, als antwortet laaangsam :wink: .
Ich will einen neue Komponente vom Typ Tedit erstellen. Die soll standartmäßig andere Eigenschaften haben (z.Bsp Schrift 14 fett) und auf das Ereignis OnKeyPress immer was eigenes machen...

wie geht denn sowas???
infomio Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 110

Win xy

BeitragVerfasst: Fr 11.04.03 15:44 
sag bloss des weiß keiner??? :?
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: So 13.04.03 10:16 
Hi,

im Konstruktor einfach die neuen Werte zuweisen. Um auf das KeyPress-Event zu zugreifen würde ich die Methode DoKeyPress überschreiben.

Gruß
Tino
infomio Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 110

Win xy

BeitragVerfasst: So 13.04.03 11:27 
danke aber Code?? und den wohin???
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 14.04.03 14:25 
Hallo,

infomio hat folgendes geschrieben:
danke aber Code?? und den wohin???

Probier es doch einfach mal selbst aus und wenn Du dann Probleme hast dann poste Deinen Code und wir helfen Dir dann gerne weiter!

Gruß
Tino