Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simple.h"
- #include <string>
- String yesNo [3];
- Simple::Simple(const wxString& title) : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(250,300) )
- {
- wxPanel *panel = new wxPanel(this,wxID_ANY);
- String yesNo [3] = {"", "Yes", "No"};
- //wxButton *button = new wxButton(panel, wxID_EXIT, wxT("Quit"), wxPoint(20,20));
- wxStaticText *lblTicketNumber = new wxStaticText(panel, wxID_ANY, _("Ticket Number: "), wxPoint(15,10));
- wxStaticText *lblAgents = new wxStaticText(panel, wxID_ANY, _("Agents: "), wxPoint(15,40));
- wxTextCtrl *txtTicketNumber = new wxTextCtrl(panel, wxID_ANY, wxEmptyString, wxPoint(125,7), wxSize(120,25));
- wxTextCtrl *txtAgents = new wxTextCtrl(panel, wxID_ANY, wxEmptyString, wxPoint(75,35), wxSize(170,25));
- wxComboBox *cmbCBSet = new wxComboBox(panel, wxID_ANY, wxEmptyString, wxPoint(75,70), wxDefaultSize, yesNo);
- //Connect(wxID_EXIT, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(Simple::OnQuit));
- //wxTextCtrl *txtTicketNumber = new wxTextCtrl(panel, wxID_ANY, wxEmptyString, wxPoint(20,55), wxSize(100,25));
- //button->SetFocus();
- SetIcon(wxIcon(wxT("pdf.jpg")));
- Centre();
- }
- void Simple::OnQuit(wxCommandEvent & WXUNUSED(event))
- {
- Close(true);
- }
Add Comment
Please, Sign In to add comment