cpp/MainWindow.cpp
author viric <viriketo@gmail.com>
Sun, 13 Feb 2011 08:27:44 +0100
changeset 4 a3d29fb016c3
parent 2 5331bd08a294
child 5 f2a2f64eb682
permissions -rw-r--r--
Adding handling of tab and enter
viriketo@2
     1
#include <wx/wx.h>
viriketo@2
     2
#include <wx/image.h>
viriketo@2
     3
#include "MainWindow.hpp"
viriketo@4
     4
#include "TextBox.hpp"
viriketo@2
     5
viriketo@2
     6
MainWindow::MainWindow()
viriketo@2
     7
    :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition)
viriketo@2
     8
{
viriketo@2
     9
    wxBoxSizer *s = new wxBoxSizer(wxVERTICAL);
viriketo@2
    10
    wxStaticText *label = new wxStaticText(this, wxID_ANY,
viriketo@2
    11
            _("Introdueix la frase:"));
viriketo@4
    12
    wxTextBox *text = new wxTextBox(this, wxID_ANY);
viriketo@2
    13
    s->Add(label);
viriketo@2
    14
    s->Add(text);
viriketo@2
    15
viriketo@2
    16
    text->SetFocus();
viriketo@2
    17
viriketo@2
    18
    SetSizerAndFit(s);
viriketo@2
    19
}