00001
00002
00003
00004
00005 #ifndef _GEDIT_H_
00006 #define _GEDIT_H_
00007
00009 class LgiClass GEdit :
00010 public GControl,
00011 public ResObject
00012 {
00013
00014
00015
00016
00017
00018
00019
00020
00021 protected:
00022 class GEditPrivate *d;
00023 #if defined WIN32
00024 int SysOnNotify(int Code);
00025 #endif
00026
00027 public:
00029 GEdit
00030 (
00032 int id,
00034 int x,
00036 int y,
00038 int cx,
00040 int cy,
00042 char *name
00043 );
00044 ~GEdit();
00045
00047 bool MultiLine();
00049 void MultiLine(bool m);
00051 bool Password();
00053 void Password(bool m);
00055 void Value(int i);
00057 int Value();
00059 void Select(int Start = 0, int Len = -1);
00061 int GetCaret();
00063 void SetCaret(int Pos);
00064
00065 int OnEvent(GMessage *Msg);
00066 bool OnKey(GKey &k);
00067 char *Name();
00068 bool Name(char *s);
00069 char16 *NameW();
00070 bool NameW(char16 *s);
00071
00072 #ifdef WIN32
00073 void OnAttach();
00074 #else
00075 void Enabled(bool e);
00076 bool Enabled();
00077 void Focus(bool f);
00078 bool Focus();
00079 bool SetPos(GRect &p, bool Repaint = false);
00080 int OnNotify(GView *c, int f);
00081 void OnCreate();
00082 #endif
00083 };
00084
00085 #endif