I was searching the Cocoa code to do that on OS X yesterday and I found one set here.
My next move was to use a #If Target and check that.
In my memory, I recall Xojo (Real Studio ?) on Windows knows how to open / save rtf natively. I even recall images
So, I fired LibreOffice, copy / paste data (text + images) and saved it in a rtf file (suffixed lo as flag).
Then I fired in the IDE on Windows 10 the project and tried to get the whole rtf contents (styled text + images). I did get the styled text, but not the images.
Solutions:
a. LibreOffice saved a wrong rtf file
b. Xojo 2015r1/2016r1 have been changed and do not use Windows API to deal with rtf,
c. I’ve made a mistake writing the code (in fact, copy/paste code from LR).
So, I ask here, in the Windows channel more knoledgeable people about their experience with Windows.
All in all, it seems that I must have two sets of rtf data:
a. rtfd files with images for OS X,
b. rtf files with images for Windows
As far as I know images are not supported and never were.
FTC by Bob Keeney does support them I think, but the standard Xojo RTF methods don’t support images.
not on Windows and not on any other OS either. At least as far as I know. Others may correct me if I’m wrong.
FTC is the only option here as far as I know. I’m pretty sure it at least partially supports images. It might not support text flow around images.