00001 00002 00003 00004 00005 #ifndef _GEDIT_H_ 00006 #define _GEDIT_H_ 00007 00008 #if !WIN32NATIVE 00009 #include "GTextView3.h" 00010 #endif 00011 00013 class LgiClass GEdit : 00014 #if WIN32NATIVE 00015 public GControl, 00016 public ResObject 00017 #else 00018 public GTextView3 00019 #endif 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 const char *name 00043 ); 00044 ~GEdit(); 00045 00046 const char *GetClass() { return "GEdit"; } 00047 00048 00050 bool MultiLine(); 00052 void MultiLine(bool m); 00054 bool Password(); 00056 void Password(bool m); 00058 void Value(int64 i); 00060 int64 Value(); 00062 void Select(int Start = 0, int Len = -1); 00064 bool GetSelection(int &Start, int &Len); 00066 int GetCaret(); 00068 void SetCaret(int Pos); 00069 00070 bool OnKey(GKey &k); 00071 00072 #if WIN32NATIVE 00073 int OnEvent(GMessage *Msg); 00074 void OnAttach(); 00075 char *Name(); 00076 bool Name(const char *s); 00077 char16 *NameW(); 00078 bool NameW(const char16 *s); 00079 #else 00080 void OnEnter(GKey &k); 00081 void SendNotify(int Data); 00082 bool OnLayout(GViewLayoutInfo &Inf) { return false; } 00083 #endif 00084 }; 00085 00086 #endif