codice:
///-----------------------------------------------------------------
///
/// @file Progetto1Frm.cpp
/// @author
/// Created: 31/07/2013 8.05.42
/// @section DESCRIPTION
/// Progetto1Frm class implementation
///
///------------------------------------------------------------------
#include "Progetto1Frm.h"
#include <iostream>
#include <fstream>
#include <stdlib.h>
//Do not add custom headers between
//Header Include Start and Header Include End
//wxDev-C++ designer will remove them
////Header Include Start
////Header Include End
//----------------------------------------------------------------------------
// Progetto1Frm
//----------------------------------------------------------------------------
//Add Custom Events only in the appropriate block.
//Code added in other places will be removed by wxDev-C++
////Event Table Start
BEGIN_EVENT_TABLE(Progetto1Frm,wxFrame)
////Manual Code Start
////Manual Code End
EVT_CLOSE(Progetto1Frm::OnClose)
EVT_ACTIVATE(Progetto1Frm::Progetto1FrmActivate)
EVT_BUTTON(ID_WXBUTTON2,Progetto1Frm::WxButton2Click)
EVT_TEXT(ID_WXEDIT1,Progetto1Frm::WxEdit1Updated)
EVT_BUTTON(ID_WXBUTTON1,Progetto1Frm::WxButton1Click0)
END_EVENT_TABLE()
////Event Table End
Progetto1Frm::Progetto1Frm(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxFrame(parent, id, title, position, size, style)
{
CreateGUIControls();
}
Progetto1Frm::~Progetto1Frm()
{
}
void Progetto1Frm::CreateGUIControls()
{
//Do not add custom code between
//GUI Items Creation Start and GUI Items Creation End
//wxDev-C++ designer will remove them.
//Add the custom code before or after the blocks
////GUI Items Creation Start
WxButton2 = new wxButton(this, ID_WXBUTTON2, _("Avvia File"), wxPoint(40, 79), wxSize(100, 35), 0, wxDefaultValidator, _("WxButton2"));
editText = new wxTextCtrl(this, ID_WXEDIT1, _(""), wxPoint(152, 32), wxSize(121, 35), 0, wxDefaultValidator, _("editText"));
WxButton1 = new wxButton(this, ID_WXBUTTON1, _("Verifica"), wxPoint(40, 32), wxSize(100, 35), 0, wxDefaultValidator, _("WxButton1"));
SetTitle(_("Progetto1"));
SetIcon(wxNullIcon);
SetSize(8,146,314,196);
Center();
////GUI Items Creation End
}
void Progetto1Frm::OnClose(wxCloseEvent& event)
{
Destroy();
}
/*
* WxEdit1Updated
*/
void Progetto1Frm::WxEdit1Updated(wxCommandEvent& event)
{
// insert your code here
}
/*
* WxButton1Click
*/
void Progetto1Frm::WxButton1Click(wxCommandEvent& event)
{
// insert your code here
}
/*
* Progetto1FrmActivate
*/
void Progetto1Frm::Progetto1FrmActivate(wxActivateEvent& event)
{
// insert your code here
}
/*
* WxButton1Click0
*/
void Progetto1Frm::WxButton1Click0(wxCommandEvent& event)
{
// insert your code here
editText->Clear();
editText->AppendText("Verifica: Funziona");
}
/*
* WxButton2Click
*/
void Progetto1Frm::WxButton2Click(wxCommandEvent& event)
{
// insert your code here
}