Autor Beitrag
Sauger Chris
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: So 12.10.03 12:56 
Hallo wie kann ich alle schrift arten in eine Memo komponente
bringen.
dank
Chris (Delphi7)
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: So 12.10.03 13:06 
Hallo,

meinst du das so?
ausblenden Delphi-Quelltext
1:
Memo1.Lines.Assign(Screen.Fonts);					


Gruß
Klabautermann
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: So 12.10.03 13:10 
Titel: alle schrift arten in einer Memo
ich meinte wenn ein text in verschiedenen Schrift arten geschrieben ist
das es alles anzeigt

danke Klabauterman.

chris (Delphi7)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 12.10.03 17:56 
Ein TMemo kann nur eine Schriftart haben. Nimm ein TRichEdit.
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: So 12.10.03 19:04 
oder - weil RichEdit zu kompliziert:
Nimm eine PaintBox und schreibe selbst den Code (Verry simple):
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
Y:=0;
for I:= 0 to Screen.Fonts.count -1 do begin
  Canvas.Font.Name:= Screen.Fonts[I];
  Canvas.TextOut(1,Y,Screen.Font[i];
  Inc(Y,Canvas.TextHeight('M'));
end;


ungetestet.

grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Di 14.10.03 19:04 
wie mache ich das das alle schriften in einer RichEdit sind

Chris(Delphi7)
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mi 15.10.03 06:47 
gugg mal in deinen Delphi-Ordner unter Demos/ownerlst, dort werden in einer Listview alle Fonts in der jeweiligen schriftart aufgelistet.

wenn du ein Richedit verwenden willst, gugg dir die Sel*-Eigenschaften des Richedits an (insbesondere Selattributes, um die Schriftart zu ändern) .

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 15.10.03 13:09 
MSCH hat folgendes geschrieben:
oder - weil RichEdit zu kompliziert:

Was soll denn daran kompliziert sein?

Gruß
Tino