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... » I really don`t know how to UPDATE the RichText,help!!
icon9.gif  I really don`t know how to UPDATE the RichText,help!! [message #36614] Wed, 20 June 2012 13:09 Go to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
RichText txt;
RichPara para;
//give some fmt and value to para
txt.Cat(para);

RichTextView view;
view.Pick(txt);

//then i want to give some new fmt and value to para
txt.Cat(para);
vew.Pick(txt); //it collapse!!!! how can i update new fmt??
Re: I really don`t know how to UPDATE the RichText,help!! [message #36615 is a reply to message #36614] Wed, 20 June 2012 14:01 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi Akebee,

Perhaps you could have a look to :

http://www.ultimatepp.org/reference$RichTextObject$en-us.htm l

Have a nice day
______________________
Regards

Biobytes
Re: I really don`t know how to UPDATE the RichText,help!! [message #36618 is a reply to message #36614] Thu, 21 June 2012 01:45 Go to previous messageGo to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
yeah ,BioBytes,
i see the example, use SetQTF can do that Very Happy
Re: I really don`t know how to UPDATE the RichText,help!! [message #36621 is a reply to message #36614] Thu, 21 June 2012 13:57 Go to previous messageGo to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
That does not work!!! Confused

Embarassed
Re: I really don`t know how to UPDATE the RichText,help!! [message #37420 is a reply to message #36614] Tue, 02 October 2012 08:10 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
akebee wrote on Wed, 20 June 2012 07:09

RichText txt;
RichPara para;
//give some fmt and value to para
txt.Cat(para);

RichTextView view;
view.Pick(txt);



Pick destroys the content of txt. That is why it does not work.

Try

RichText copy; copy <<= txt; view.Pick(copy);


Quote:


//then i want to give some new fmt and value to para
txt.Cat(para);
vew.Pick(txt); //it collapse!!!! how can i update new fmt??


Previous Topic: Fatal error appear every time when use SetQTF
Next Topic: RichEdit page size
Goto Forum:
  


Current Time: Thu Mar 28 16:40:42 CET 2024

Total time taken to generate the page: 0.01420 seconds