Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » RichTextView::GetData() Method
Re: RichTextView::GetData() Method [message #57513 is a reply to message #57511] Thu, 16 September 2021 00:35 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
mubeta wrote on Tue, 14 September 2021 20:46
If the qtf code in the viewer don't contain any text, the GetData method return an empty string, losing all the others qtf data: paragraph format and what else. I think that is not the best, and for my developing app, I had remove this feature.

Value RichTextView::GetData() const
{
	//if(text.IsEmpty()) return Value();
	return GetQTF();
}


Tough one. Current behaviour is designed so that IsNull returns true when RichTextView is empty.

I guess you should be able to call GetQTF if needed?

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: Change proposal: line break in RichType / fieldparts
Next Topic: Remove empty paragraphs
Goto Forum:
  


Current Time: Wed Jun 11 01:26:51 CEST 2025

Total time taken to generate the page: 0.02796 seconds