Einzelnen Beitrag anzeigen

relocate

Registriert seit: 26. Mai 2009
60 Beiträge
 
#7

AW: Eigene Editor Komponente bauen

  Alt 19. Jul 2011, 12:41
TRichedit kann schon mal keine Bilder
Bist Du dir sicher?
Ja. Jedenfalls nicht nutzbar.
Zitat:
After quite a bit of searching the net, I found that there was no easy way to insert an image into a RichEdit. Inserting a bitmap as an object worked well enough, but the user can still open it up and edit it, and the image had to be an existing file. Using the clipboard worked even better, but wiped out the previous contents. Since my project required that the image was both reasonably uneditable, and left the clipboard intact, I had to resort to editing the RTF.
Ich habe dem Richedit Feld ein Bild zugewiesen, (was ja mit fast jeder Komponente geht, ist schließlich ein grafisches Objekt), danach war das Richedit aber nicht mehr brauchbar.

Lädt man eine RTF Datei mit Bild wird das verschwinden, speichert man dies RTF ist es auch aus der Datei entfernt. Die Delphi eigene Richedit Komponente ist daher nicht brauchbar. Und die Jedi Komponente ist für mich ein zuviel des Guten.

PS.: Z.B. der BBCode wäre ein Super Auszeichnungssprache.
  Mit Zitat antworten Zitat