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... » insert text into RichTable of RichText
insert text into RichTable of RichText [message #9958] Mon, 11 June 2007 15:28 Go to next message
ihope is currently offline  ihope
Messages: 4
Registered: June 2007
Junior Member
MyCode like this:

String stemp = "{{5000:5000h1; [s0; ]:: [s0; ]:: [s0; ]:: [s0; ]}}";
RichText x = ParseQTF(stemp);
RichTxt celltxt = x.GetTable(1).GetPick(1,1);

but in Txt.h
const RichTable& GetTable(int i) const;
so i can't edit text in tablecell. Sad

Could someone please tell me how to eidt RichTable int RichText?

Thank you in advance

ihope
Re: insert text into RichTable of RichText [message #9965 is a reply to message #9958] Mon, 11 June 2007 17:12 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, generally, I mostly use QTF to define RichText content.

Anyway, you can of course manipulate it directly (not quite documented at the moment... Smile

Table manipulation routines are in RichText, starting with GetTableFormat method. All tables are accessed by table index, starting from zero. You can transform editation position to table index (to find out in what table cursor is) using RichPos structure, which contains a lot of related info...
Re: insert text into RichTable of RichText [message #9974 is a reply to message #9965] Tue, 12 June 2007 01:49 Go to previous messageGo to next message
ihope is currently offline  ihope
Messages: 4
Registered: June 2007
Junior Member
thanks.

i made it. i changed the source code to return a reference to RichTable without const . Laughing
Re: insert text into RichTable of RichText [message #9978 is a reply to message #9974] Tue, 12 June 2007 11:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Not a good idea, your code will be broken with next U++ version.

If RichEdit can do tables with current RichText interface, you can do it too Wink

Mirek
Re: insert text into RichTable of RichText [message #10007 is a reply to message #9978] Wed, 13 June 2007 14:46 Go to previous messageGo to next message
ihope is currently offline  ihope
Messages: 4
Registered: June 2007
Junior Member
U++ is the best C++ platform, i think.

i can GetTableFormat ofcourse , but RichTable::Format cannt help me to manipulate RichCell .
perhaps, without enough document, i cann't understand your suggestion way . Embarassed
Re: insert text into RichTable of RichText [message #10008 is a reply to message #10007] Wed, 13 June 2007 15:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry for lacking documentation... In fact, you are not even supposed to work with RichCell that is already in RichText.

What exactly have you planned to do with the table?

Mirek
Re: insert text into RichTable of RichText [message #10020 is a reply to message #10008] Thu, 14 June 2007 08:15 Go to previous messageGo to next message
ihope is currently offline  ihope
Messages: 4
Registered: June 2007
Junior Member

i stored person's information (include photo) into DB, then i get photo from DB and insert it into QTF(here i used QTF as a template). in another word, i used UWord as a simple user interface. Smile i test this just for interest .
Re: insert text into RichTable of RichText [message #10031 is a reply to message #10020] Thu, 14 June 2007 22:28 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Using QTF as template is now about 80% of my job Wink

But I am doing it mostly on QTF level.

Mirek
Previous Topic: non standard behaviour of table when using backspace?
Next Topic: Printing images from Uword
Goto Forum:
  


Current Time: Fri Apr 19 12:48:14 CEST 2024

Total time taken to generate the page: 0.01646 seconds