ultimatepp/uppdev/LineEdit/main.cpp
cxl ba988a7d26 .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@2398 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-05-14 14:11:45 +00:00

18 lines
No EOL
357 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 <<= 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 "œ"