ultimatepp/uppdev/LineEdit/main.cpp
cxl 6f0c663a8c .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@3352 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-04-18 11:55:27 +00:00

19 lines
No EOL
378 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();
edit <<= LoadFile(ConfigFile("data.txt"));
TopWindow win;
// win.SetRect(100, 100, 100, 100);
win.Sizeable();
win.Add(edit.HSizePos(20, 20).VSizePos(20, 20));
win.Open();
Ctrl::EventLoop();
SaveFile(ConfigFile("data.txt"), ~edit);
}
// 156 0x9c "œ"