ultimatepp/uppdev/LineEdit/main.cpp
cxl 46544b6990 .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@7935 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-11-28 16:57:22 +00:00

22 lines
No EOL
434 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
LineEdit edit;
edit.ShowSpaces();
auto fn = ConfigFile("data.txt");
edit <<= LoadFile(fn);
TopWindow win;
// win.SetRect(100, 100, 100, 100);
win.Sizeable();
win.Add(edit.HSizePos(20, 20).VSizePos(20, 20));
win.Open();
edit.ShowLineEndings();
edit.ShowCurrentLine(LtCyan());
Ctrl::EventLoop();
SaveFile(fn, ~edit);
}
// 156 0x9c "œ"