toxcore/Tox_GUI/gui/home/Home.cpp
irungentoo baf14f8121 Merged "wxWidgets VS template for windows" from juryben
That big 40MB file is useless so I merged the repos in a way that it
dissapears forever from the main repo.
2013-06-24 07:26:30 -04:00

28 lines
611 B
C++

#include <wx\textdlg.h>
#include "Home.h"
Home::Home(const wxString& title)
: wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(750, 450))
{
wxPanel * panel = new wxPanel(this, -1);
wxBoxSizer *hbox = new wxBoxSizer(wxHORIZONTAL);
netlogList = new wxListBox(panel, ID_LISTBOX,
wxPoint(-1, -1), wxSize(-1, -1));
hbox->Add(netlogList, 3, wxEXPAND | wxALL, 20);
panel->SetSizer(hbox);
Centre();
netlogList->Append("Testing...");
}
void Home::AddNew(wxCommandEvent& event)
{
wxString str = wxGetTextFromUser(wxT("Add new item"));
if (str.Len() > 0)
netlogList->Append(str);
}