Code: Select all
EVT_BUTTON(02, Logclick)
void Logclick(wxCommandEvent& evt, wxString Pass);
Code: Select all
EVT_BUTTON(02, Logclick)
void Logclick(wxCommandEvent& evt, wxString Pass);
Code: Select all
#pragma once
#include "wx/wx.h"
class cMain : public wxFrame
{
public:
cMain();
~cMain();
public:
wxButton* m_btn1 = nullptr;
wxButton* button = nullptr;
wxTextCtrl* daBox = nullptr;
wxStaticText* user_text = nullptr;
wxTextCtrl* zuz = nullptr;
wxStaticText* pass_text = nullptr;
void Logclick(wxCommandEvent& evt, wxString Pass);
void OnBUTclick(wxCommandEvent& evt);
wxDECLARE_EVENT_TABLE();
};
Code: Select all
#include "cMain.h"
wxBEGIN_EVENT_TABLE(cMain, wxFrame)
EVT_BUTTON(02, Logclick)
EVT_BUTTON(9245, OnBUTclick)
wxEND_EVENT_TABLE()
cMain::cMain() : wxFrame(nullptr, wxID_ANY, "Rares", wxPoint(30, 30), wxSize(800, 600))
{
m_btn1 = new wxButton(this, 9245, "Login", wxPoint(10, 10), wxSize(150, 50));
button = new wxButton(this, 02, "Create Account", wxPoint(200, 10), wxSize(150, 50));/////////////902
daBox = new wxTextCtrl(this, 5, "",wxPoint(10, 130), wxSize(100, 50));//
zuz = new wxTextCtrl(this, 999, "", wxPoint(10, 250), wxSize(100, 50));//
user_text = new wxStaticText(this, 201, "User:", wxPoint(10, 110), wxSize(150, 50));
pass_text = new wxStaticText(this, 4, "Password:", wxPoint(10, 230), wxSize(150, 50));
}
cMain::~cMain()
{
}
void cMain::Logclick(wxCommandEvent& evt, wxString Pass) {
}
void cMain::OnBUTclick(wxCommandEvent& evt) {
}