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
#include <wx/wx.h>
#include <wx/image.h>
#include "MainWindow.hpp"
#include "TextBox.hpp"

MainWindow::MainWindow()
    :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition)
{
    wxBoxSizer *s = new wxBoxSizer(wxVERTICAL);
    wxStaticText *label = new wxStaticText(this, wxID_ANY,
            _("Introdueix la frase:"));
    wxTextBox *text = new wxTextBox(this, wxID_ANY);
    s->Add(label);
    s->Add(text);

    text->SetFocus();

    SetSizerAndFit(s);
}