Guest User

Untitled

a guest
Feb 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.24 KB | None | 0 0
  1. #include "simple.h"
  2. #include <string>
  3.  
  4. String yesNo [3];
  5.  
  6. Simple::Simple(const wxString& title) : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(250,300) )
  7. {
  8.   wxPanel *panel = new wxPanel(this,wxID_ANY);
  9.  
  10.     String yesNo [3] = {"", "Yes", "No"};
  11.  
  12.   //wxButton *button = new wxButton(panel, wxID_EXIT, wxT("Quit"), wxPoint(20,20));
  13.     wxStaticText *lblTicketNumber = new wxStaticText(panel, wxID_ANY, _("Ticket Number: "), wxPoint(15,10));
  14.     wxStaticText *lblAgents = new wxStaticText(panel, wxID_ANY, _("Agents: "), wxPoint(15,40));
  15.  
  16.  
  17.     wxTextCtrl *txtTicketNumber = new wxTextCtrl(panel, wxID_ANY, wxEmptyString, wxPoint(125,7), wxSize(120,25));
  18.     wxTextCtrl *txtAgents = new wxTextCtrl(panel, wxID_ANY, wxEmptyString, wxPoint(75,35), wxSize(170,25));
  19.  
  20.     wxComboBox *cmbCBSet = new wxComboBox(panel, wxID_ANY, wxEmptyString, wxPoint(75,70), wxDefaultSize, yesNo);
  21.   //Connect(wxID_EXIT, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(Simple::OnQuit));
  22.   //wxTextCtrl *txtTicketNumber = new wxTextCtrl(panel, wxID_ANY, wxEmptyString, wxPoint(20,55), wxSize(100,25));
  23.  
  24.   //button->SetFocus();
  25.  
  26.  SetIcon(wxIcon(wxT("pdf.jpg")));
  27.   Centre();
  28. }
  29.  
  30. void Simple::OnQuit(wxCommandEvent & WXUNUSED(event))
  31. {
  32.   Close(true);
  33. }
Add Comment
Please, Sign In to add comment