Textfield - what is wxTextCtrlNameStr?

Posted by Wallter on Stack Overflow See other posts from Stack Overflow or by Wallter
Published on 2010-03-12T18:27:49Z Indexed on 2010/03/12 18:37 UTC
Read the original article Hit count: 291

Filed under:
|
|
|

I'm trying to create a basic wxWidgets program with a text entry box, in the constructor there is a variable wxTextCtrlNameStr - in researching I can't seem to find wxTextCtrlNameStr? any help?

wxTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxTextCtrlNameStr)

My Code:

MainFrame::MainFrame(const wxString& title)
       : wxFrame(NULL, wxID_ANY, title)
{
 wxButton * Centigrade = new wxButton(this, 
                                      BUTTON_CENTIGRADE, 
                                      _T("to Centigrade"), 
                                      wxPoint(20, 20), 
                                      wxDefaultSize, 
                                      0);
 wxButton * Fahrenheit = new wxButton(this, 
                                      BUTTON_FAHRENHEIT, 
                                      _T("to Fahrenheit"), 
                                      wxPoint(20, 40), 
                                      wxDefaultSize, 
                                      0);

 F_txt = new wxTextCtrl(this, 
         TXT_F_Main, 
         "0", 
         wxDefaultPosition, 
         wxDefaultSize, 
         wxDefaultValidator, 
         wxTextCtrlNameStr);  /***********************************************/
 C_txt = new wxTextCtrl(this, 
         TXT_C_Main, 
         "0", 
         wxDefaultPosition, 
         wxDefaultSize, 
         wxDefaultValidator, 
         wxTextCtrlNameStr);  /***********************************************/

... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 

© Stack Overflow or respective owner

Related posts about c++

Related posts about wxwidgets