U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » RichText,QTF,RTF... » how can i get the image in the RichText?
Re: how can i get the image in the RichText? [message #54475 is a reply to message #54455] Wed, 29 July 2020 10:40 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
jimo wrote on Sat, 25 July 2020 05:42
RichEdit edt;
// then i pasted a image to the edt from cliboard

const RichText& rt = edt.Get();
// how can i get the image from RichText?


tks!


Well, there can be more than one... Smile

However, if you want to get all of them, then the easy way is to use RichText::Iterator to iterate through all paragraphs, then RichPara::GetCount, RichPara::operator[] to iterate through all paragraph parts, check if that is object, convert the object to its natural size and paint it...

Mirek
 
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to solve WhenEnter event to RichEdit
Next Topic: Documentation / more info
Goto Forum:
  


Current Time: Sun Apr 26 03:10:36 GMT+2 2026

Total time taken to generate the page: 0.00963 seconds