Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Append line into LineEdit or DocEdit
Re: Append line into LineEdit or DocEdit [message #47082 is a reply to message #47080] |
Tue, 29 November 2016 21:50   |
Zbych
Messages: 327 Registered: July 2009
|
Senior Member |
|
|
I usually use LineEdit and this code from TheIDE to implement log window:
void XXX::Log(const String& txt)
{
int l, h;
log.GetSelection(l, h);
log.SetEditable();
log.MoveTextEnd();
Vector<String> v = Split(txt, '\n');
auto t = GetSysTime();
for (int i = 0; i < v.GetCount(); i++){
log.Paste(WString(Format("\n%02d:%02d:%02d: %s", t.hour, t.minute, t.second, v[i])));
}
log.SetReadOnly();
log.SetSelection(l, h);
log.ScrollEnd();
}
[Updated on: Tue, 29 November 2016 21:52] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed May 14 00:32:24 CEST 2025
Total time taken to generate the page: 0.01307 seconds
|