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 WIN32NATIVE
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
00046 char *GetClass() { return "GEdit"; }
00047
00049 bool MultiLine();
00051 void MultiLine(bool m);
00053 bool Password();
00055 void Password(bool m);
00057 void Value(int64 i);
00059 int64 Value();
00061 void Select(int Start = 0, int Len = -1);
00063 int GetCaret();
00065 void SetCaret(int Pos);
00066
00067 int OnEvent(GMessage *Msg);
00068 bool OnKey(GKey &k);
00069 char *Name();
00070 bool Name(char *s);
00071 char16 *NameW();
00072 bool NameW(char16 *s);
00073
00074 #if WIN32NATIVE
00075 void OnAttach();
00076 #else
00077 void Enabled(bool e);
00078 bool Enabled();
00079 void Focus(bool f);
00080 bool Focus();
00081 bool SetPos(GRect &p, bool Repaint = false);
00082 int OnNotify(GViewI *c, int f);
00083 void OnCreate();
00084 #endif
00085 };
00086
00087 #endif