#ifndef _CHAPTER_05_H_
#define _CHAPTER_05_H_

#include <wx/wx.h>

class MyApp : public wxApp 
{
public:
   virtual bool OnInit();
};

class MyFrame : public wxFrame
{
public:
   MyFrame(const wxString& title);
   
   void OnChoice(wxCommandEvent& event);

   void OnComboBox(wxCommandEvent& event);

   void OnCheckBoxBold(wxCommandEvent& event);

   void OnCheckBoxItalic(wxCommandEvent& event);

   void OnCheckBoxUnderline(wxCommandEvent& event);

   void OnListBox(wxCommandEvent& event);

   void OnRadioBox(wxCommandEvent& event);
 
   void OnExit(wxCommandEvent& event);
   
private:

   wxStaticText *lblFont;
   wxStaticText *lblchoice;
   wxStaticText *lblStyle;
   wxStaticText *lblSize;
   wxStaticText *lblText;
   wxChoice *choice;
   wxComboBox *cbFont;
   wxListBox *lbSize;
   wxCheckBox *ckStyleBl;
   wxCheckBox *ckStyleIt;
   wxCheckBox *ckStyleUn;
   wxRadioBox *rbColor;
   wxTextCtrl *tcText;
   wxButton *btnExit;
   
   DECLARE_EVENT_TABLE()
};

DECLARE_APP(MyApp)

#endif