I see no funciton to add text to those text editors like 'append' .. i only see things like SetTextL, is there a way to append? Maybe someone experienced can give me some tips. I'm ttrying to to a chat program.
you could have Richtext object in your class that has the content, you would then just add the stuff to the richtext and update it to the editor when needed.
You could also take the editor text in HBuffer (see docs how to) and reAlloc that and then append.
Or you could try just taking the pointer to the PlainText of the editor and try appending to it strait.
Sometimes, calling PrintLine doesn't seem to cause a New Line to be printed. The next text appends to the end of the last instead on the same line.
PrintLine() is called in a few ways..
The simplest way
iReporter.PrintLine(_L("Connecting to Server"));
Another way:
TBuf<30> printBuf;
TBuf<2> tempPort; tempPort.Format(_L("%d"), channel);
printBuf.Append(_L("Get port = "));
printBuf.Append(tempPort);
iReporter.PrintLine(printBuf);
I've also tried
TBuf<30> printBuf;
printBuf.Format(_L("Get port = %d"), channel);
iReporter.PrintLine(printLine);
I think all the above work fine.
However a new line is not printed when i used this:
iReporter.PrintLine(_L("Connection error "));
TBuf<F2F_ISTATUS_LENGTH> tmp; tmp.Format(_L("%d"), iStatus.Int());
iReporter.PrintLine(tmp);
Any string printed consequently using PrintLine is printed right after 'tmp' ... not on a new line..
Any idea anyone?