cpp/MainWindow.cpp
changeset 4 a3d29fb016c3
parent 2 5331bd08a294
child 5 f2a2f64eb682
equal deleted inserted replaced
3:01dafa022fa1 4:a3d29fb016c3
     1 #include <wx/wx.h>
     1 #include <wx/wx.h>
     2 #include <wx/image.h>
     2 #include <wx/image.h>
     3 #include "MainWindow.hpp"
     3 #include "MainWindow.hpp"
       
     4 #include "TextBox.hpp"
     4 
     5 
     5 MainWindow::MainWindow()
     6 MainWindow::MainWindow()
     6     :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition)
     7     :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition)
     7 {
     8 {
     8     wxBoxSizer *s = new wxBoxSizer(wxVERTICAL);
     9     wxBoxSizer *s = new wxBoxSizer(wxVERTICAL);
     9     wxStaticText *label = new wxStaticText(this, wxID_ANY,
    10     wxStaticText *label = new wxStaticText(this, wxID_ANY,
    10             _("Introdueix la frase:"));
    11             _("Introdueix la frase:"));
    11     wxTextCtrl *text = new wxTextCtrl(this, wxID_ANY);
    12     wxTextBox *text = new wxTextBox(this, wxID_ANY);
    12     s->Add(label);
    13     s->Add(label);
    13     s->Add(text);
    14     s->Add(text);
    14 
    15 
    15     text->SetFocus();
    16     text->SetFocus();
    16 
    17