Code: Select all
IMPLEMENT_APP(MyApp);
bool MyApp::OnInit()
{
Program *param = new Program(_T("Trainer for AssaultCube"));
param->Show(true);
return true;
}
Program::Program(const wxString & title)
:wxFrame(NULL,wxID_ANY,title,wxDefaultPosition,wxSize(400,100))
{
panel->SetBackgroundColour(*wxBLACK);
bar = new wxMenuBar;
menu = new wxMenu;
menus = new wxMenu;
menu->Append(134, "edit");
menu->Append(136, "copy");
menus->Append(135, "EdiT");
bar->Append(menu, "FILE");
bar->Append(menus, "Theme");
SetMenuBar(bar);
Connect(134, wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(Program::button3));
Connect(135, wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(Program::button3));
Connect(136, wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(Program::button3));
Centre();
wxFont *font = new wxFont(15, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD);
wxFont *font2 = new wxFont(13, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD);
wxStaticText *text = new wxStaticText(panel, wxID_ANY, " Trainer version 1.0", wxPoint(80,0), wxSize(200, 20));
text->SetFont(*font);
text->SetBackgroundColour(*wxBLUE);
but = new wxButton(panel, 5, "WEAPON unlimited", wxPoint(10,30), wxSize(170, 30));
but->SetBackgroundColour(*wxGREEN);
but->SetForegroundColour(*wxRED);
but->SetFont(*font2);
but2 = new wxButton(panel, 6, "HEALTH UNliMited", wxPoint(190, 30), wxSize(170, 30));
but2->SetBackgroundColour(*wxGREEN);
but2->SetForegroundColour(*wxRED);
but2->SetFont(*font2);
Connect(5, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(Program::Button1));
Connect(6, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(Program::Button2));
}