ultimatepp/uppdev/MyEcho_Test/MyEcho.h
cxl 4a1c627474 Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

37 lines
611 B
C++

#ifndef _MyEcho_MyEcho_h
#define _MyEcho_MyEcho_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define MAX_CACHE_LINE 200
class MyDocEdit : public DocEdit
{
Thread timerthread;
String inputString;
static String tipString;
String dir;
public:
virtual bool Key(dword key, int count);
MyDocEdit();
void ShowTip();
int RunCommand(String user_input);
void InsertData();
};
class MyApp : public TopWindow
{
public:
MyDocEdit text;
typedef MyApp CLASSNAME;
MyApp()
{
SetRect(0, 0, 640, 480);
Add(text.LeftPosZ(10, 500).TopPosZ(10, 350));
}
};
#endif