Autor Beitrag
Diamond
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 64
Erhaltene Danke: 1

Windows 7 Prof, OS X 10.8
Delphi XE Architect, XCode 4.4
BeitragVerfasst: Mi 22.10.08 09:56 
hi

Ich suche eine Komponente die mir Texte im RTF-Format als formatieren String übergibt.
Wird in einem Richedit ein fettgedruckter Text ausgegeben, soll mir eine Memokomponente
den gleichen Text in fetter formatierung ausgeben. Hierbei gehts rein um die
Formatübergabe und nicht der Textübergabe :wink:

Gibt es eine solche Komponente oder Unit? Konnt bisher leider nichts finden :(

Thx
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 22.10.08 10:16 
Ein Memo ist soweit ich weiß nicht dafür ausgelegt, unterschiedliche Formate gleichzeitig darzustellen (oder nur sehr aufwändig).
Dafür gibt es ja das RichEdit.

Wofür brauchst du das denn?

_________________
PROGRAMMER: A device for converting coffee into software.
Diamond Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 64
Erhaltene Danke: 1

Windows 7 Prof, OS X 10.8
Delphi XE Architect, XCode 4.4
BeitragVerfasst: Mi 22.10.08 10:27 
Der Text im Richeditfeld hat sogesehen nur eine Formatierung.
Entweder ist der Text fett, unterstrichen, oder kursiv!
Ein String der zur Hälfte fett und zur anderen Hälfte Kursiv dargestellt wird existiert nicht.
Der String soll letztenendes formatiert in eine Datenbank eingetragen werden, um ihn so wieder formatiert aufrufen zu können.
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mi 22.10.08 10:30 
//EDIT: Bitte löschen. Missverständnis.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 22.10.08 11:16 
user profile iconDiamond hat folgendes geschrieben Zum zitierten Posting springen:
Der String soll letztenendes formatiert in eine Datenbank eingetragen werden, um ihn so wieder formatiert aufrufen zu können.

Das hindert dich doch nicht daran, direkt den Text aus dem RichEdit zu nehmen?
Hat sogar den Vorteil, dass dann die RTF Formatierung erhalten bleibt, und du dich um nichts kümmern musst.

_________________
PROGRAMMER: A device for converting coffee into software.