U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
DocEdit code scrolling
https://www.ultimatepp.org/forums/index.php?t=rview&goto=36891&th=6837#msg_36891
After browsing the TextEdit.h/DocEdit.cpp code, I came up with the following solution:
class MyDocEdit: public DocEdit {
...
void AppendText(String txt) {
Insert(GetLength(), txt);
PlaceCaret(GetLength());
}
};
Is there a more appropriate way to do it without having to inherit from DocEdit for getting access to its PlaceCaret (protected) method?
I also want to keep the scroll bar always hidden, regardless of the line count in the ctrl. For this I included
RemoveFrame(1);
in the constructor, which actually removes the scrollbar. Is it ok?