mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
23 lines
472 B
C++
23 lines
472 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
LineEdit editor;
|
|
// FileIn in("C:/xxx/logs/local1.info");
|
|
FileIn in("C:/Users/CXL/Downloads/local1.info");
|
|
editor.Load(in);
|
|
/* RDUMP(editor.GetRectSelection());
|
|
Rect r = Rect(0, 0, 5, editor.GetLineCount() - 3);
|
|
RDUMP(r);
|
|
editor.SetRectSelection(r);
|
|
RDUMP(editor.GetRectSelection());
|
|
{
|
|
RTIMING("Remove selection");
|
|
editor.Cut();
|
|
}*/
|
|
TopWindow win;
|
|
win.Add(editor.SizePos());
|
|
win.Run();
|
|
}
|