00001
00002
00003
00004
00005
00006
00007
00008 #ifndef LIBGUI_CTEXTBOX_H_
00009 #define LIBGUI_CTEXTBOX_H_
00010
00011 #include "CComponent.h"
00012
00013 class CGraphics;
00014
00020 class CTextBox : public CComponent
00021 {
00022 public:
00029 CTextBox(const CHAR* text);
00030 ~CTextBox();
00039 void SetAligment(INT8 aligment);
00053 void SetEditable(BOOL editable);
00054 virtual void Paint(CGraphics* g);
00059 CHAR m_passwordChar;
00060 protected:
00061 virtual void ProcessComponentKeyEvent(SKeyEvent* e);
00062 private:
00066 CString m_text;
00073 INT8 m_aligment;
00080 BOOL m_editable;
00087 BOOL m_edit_mode;
00093 UINT16 m_selection_start;
00099 UINT16 m_selection_end;
00100 };
00101
00102 #endif