Hello,
I created two TextEditor components, one for user input and the other for text output, like a chat. The problem is that when I add text to the output TextEditor (via setText method), autoscrolling does not work. It works only when I put text directly into the output TextEditor.
Is there a way to get autoscrolling to work in this case? Here is a sample code of what I need to do:
void textEditorReturnKeyPressed(TextEditor &editor){
if(&editor==chatInput){
chatOutput->setText(chatOutput->getText()+chatInput->getText()+T("\n"));
chatInput->setText(T(""));
}
}
Thanks!