Autor Beitrag
SuperS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 102

Win XP Home, Win XP Prof, Win 98

BeitragVerfasst: Mi 18.02.04 18:33 
Wie kann man z.B. in einer Rich Edit die Schriftgröße des Geschriebenen Textes ändern ? :lol:
Alni
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 205

Win 2000, XP, SuSe, Debian
D5 Prof, D7 Prof, Kylix
BeitragVerfasst: Mi 18.02.04 19:09 
Versuchs mal mit der Eigenschaft Font vom TRichEdit

_________________
MfG Alex
SuperS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 102

Win XP Home, Win XP Prof, Win 98

BeitragVerfasst: Mi 18.02.04 20:44 
Ne, ich mein wenn man das Programm als exe-Datei vor sich hat und aufruft, dass man dann die Schriftgröße verstellen kann
Alni
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 205

Win 2000, XP, SuSe, Debian
D5 Prof, D7 Prof, Kylix
BeitragVerfasst: Do 19.02.04 03:10 
Alle Eigenschaften die du im Objektinspektor ändern kannst kannst du auch zur Laufzeit ändern.
EDIT: Bevor ich von irgendwem eine auf den Deckel bekomm muss ich mich korrigieren. Es gibt natürlich auch Ausnahmen.

Also zum Beispiel:
Nehmen wir an du hast einen Button ein Richedit und ein Editfeld.
dann kannst du mit dieser Klickprozedur des Buttons die Schriftgröße ändern:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
  RichEdit1.Font.Size:=StrToInt(Edit1.Text);
end;


Ich hoffe das wars was du gemeint hast. :)

_________________
MfG Alex
SuperS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 102

Win XP Home, Win XP Prof, Win 98

BeitragVerfasst: Do 19.02.04 16:54 
:lol: He, sorry. Ich hab's nicht so gemeint. Und Danke für den Tip. :lol:
Alni
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 205

Win 2000, XP, SuSe, Debian
D5 Prof, D7 Prof, Kylix
BeitragVerfasst: Do 19.02.04 17:10 
Brauchst dich nicht zu entschuldigen hab nichts negativ aufgefasst. Also sorry falls ich mich so anhörte :wink:

_________________
MfG Alex