My Project
D:/source/c++/Programme/sally/sally/sallyAPI/EditBox.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include "Define.h"
00030 #include "Form.h"
00031 #include "Scrollbar.h"
00032 
00033 namespace SallyAPI
00034 {
00035         namespace GUI
00036         {
00045 
00046                 class DLL_API_SALLY CEditBox :
00047                         public SallyAPI::GUI::CForm
00048                 {
00049                 private:
00050                         SallyAPI::GUI::CScrollbar*      m_pScrollbar;
00051                         std::string                                     m_strFontName;
00052                         SallyAPI::GUI::CPicture*        m_pOutputPicture;
00053 
00054                         void                                            UpdateScrollbar();
00055                         virtual void                            RenderControl();
00056                         virtual void                            UpdateControl();
00057                 public:
00058                         CEditBox(SallyAPI::GUI::CGUIBaseObject* parent, int x, int y, int width, int height, bool showScrollbar = true, int controlId = 0);
00059                         virtual ~CEditBox();
00060 
00061                         void SetFont(const std::string& fontName);
00062 
00063                         virtual void    SetText(const std::string& text);
00064                         virtual void    Resize(int width, int height);
00065 
00066                         virtual void    SendMessageToChilds(SallyAPI::GUI::CGUIBaseObject* reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase* messageParameter = NULL);
00067                 };
00068         }
00069 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines