Help with .rtf file in RichEdit

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Help with .rtf file in RichEdit

Post by Claudio Ricardo »

Hola... tengo un archivo de texto .rtf creado con WordPad que muestro en un RichEdit, todo bién: Font Size, Color, Justify, etc.
Añadí un emote 24x24px .bmp (se vé perfecto en WordPad y Word) pero en RichEdit nó :(
Hello ... I have a text file .rtf created with WordPad that I show in a RichEdit, all right: Font Size, Color, Justify, etc.
I added a 24x24px .bmp emote (it looks perfect in WordPad and Word) but in RichEdit it doesn't
Screenshot_20210613_180720.png
Screenshot_20210613_180720.png (1.44 KiB) Viewed 671 times
Screenshot_20210613_182448.png
Screenshot_20210613_182448.png (462 Bytes) Viewed 671 times
Lo celeste es el cursor para mostrar que ni espacio vacío hay donde iría el smile !
Será que RichEdit no acepta imágenes o lo más probable, estoy haciendo algo mál ? :oops:
The blue is the cursor to show that there is no empty space where the smile would go!
Could it be that RichEdit does not accept images or, most likely, am I doing something wrong? :oops:
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Help with .rtf file in RichEdit

Post by andyglezl »

Yo lo solucione con un TRUCO...

1.- Abrir el archivo .RTF en Word
2.- Insertar una tabla de 1x1 en la posición deseada
3.- Mover (o Copiar y Pegar la imagen dentro de la tabla creada (ajustar..)
4.- Salvar el archivo .RTF
*-----------------------------------------------------------------------------------------------
I solved it with a TRICK ...

1.- Open the .RTF file in Word
2.- Insert a 1x1 table in the desired position
3.- Move (or Copy and Paste the image into the created table (adjust ..)
4.- Save the .RTF file



imagen_2021-06-13_221855.png
imagen_2021-06-13_221855.png (149.7 KiB) Viewed 656 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: Help with .rtf file in RichEdit

Post by Claudio Ricardo »

Gracias Andy !! Tu truco funciona perfecto en una linea individual pero nó a continuación de una existente.
Probé: RTFLoadFile en vez de LoadFile, también 5 (RTFUTF8) en vez de 4 (RTF) y nada...
Desisto... no era por el tonto emoji sinó por poder mostrar imágenes (por ejemplo de un control) en un Help.
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
Post Reply