my_wx_gui.hpp


#ifndef __NONAME_H__
#define __NONAME_H__

#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/frame.h>

///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
/// Class MyFrame1
///////////////////////////////////////////////////////////////////////////////
class MyFrame1 : public wxFrame
{
private:

protected:
wxStaticText* m_staticText1;
wxTextCtrl* m_textCtrl1;
wxStaticText* m_staticText2;
wxTextCtrl* m_textCtrl2;
wxStaticText* m_staticText3;
wxTextCtrl* text_input;
wxStaticText* m_staticText4;
wxButton* m_button1;
wxStaticText* result_label;

// Virtual event handlers, overide them in your derived class
virtual void print_result( wxCommandEvent& event ) { event.Skip(); }

public:

MyFrame1( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 502,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );

~MyFrame1();

};

#endif //__NONAME_H__
////////////////////////////////////////////////////////////////////////////////////////

class My_Window : public MyFrame1
{
public:

My_Window(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 502,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );

void print_result( wxCommandEvent& event);

};

 

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.