MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

TxtValue.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 //
00003 // Name:        TxtValue.h
00004 // Author:      Silvestro Jacopo
00005 //
00006 //------------------------------------------------------------------------------
00007 
00008 
00009 //------------------------------------------------------------------------------
00010 //
00011 //                            DEFINE THE CLASS
00012 //
00013 //------------------------------------------------------------------------------
00014 
00015 #ifndef __TxtValue_
00016 #define __TxtValue_
00017 #include "../Parser/FunzioniStringa.h"
00018 #include "Events/EvtValueChanged.h"
00019 #include <wx/textctrl.h>
00020 
00022 
00026 class TxtValue : public wxTextCtrl
00027 {  private:
00028      DECLARE_CLASS(TxtValue)
00029      DECLARE_EVENT_TABLE()
00030 
00031      
00032      wxString old_value;
00033     public:
00035         TxtValue(wxWindow *parent,
00036                   const wxWindowID id = -1,
00037                   const wxString& value = _T(""),
00038                   const wxPoint& pos = wxDefaultPosition,
00039                   const wxSize& size = wxDefaultSize,
00040                   long style = 0,
00041                   const wxValidator& validator = wxDefaultValidator,
00042                   const wxString& name = _T("TxtValue"));
00044         void OnKillFocus(wxFocusEvent& event);
00046         void OnKeyDown(wxKeyEvent& event);
00047 
00048 };
00049 #endif
00050 
00051 //------------------------------------------------------------------------------
00052 //
00053 //                              END OF FILE
00054 //
00055 //------------------------------------------------------------------------------
00056 
00057 
00058 

 

SourceForge Logo