Another problem. That I believe I got it wrong! I will post the statements from the beginning, because I believe they were declared wrong
Code: Select all
#include "Tips.h"
#include <wx/msgdlg.h> // wxMessageBox
#include <wx/intl.h>
#include <wx/string.h>
//(*AppHeaders
#include <wx/intl.h>
#include <wx/string.h>
//*)
//(*InternalHeaders(FrmTips)
#include <wx/intl.h>
#include <wx/string.h>
//*)
//(*InternalHeaders(FrmCadTips)
#include <wx/intl.h>
#include <wx/string.h>
//*)
//(*InternalHeaders(FrmHashtags)
#include <wx/intl.h>
#include <wx/string.h>
//*)
//(*InternalHeaders(FrmCadHashtags)
#include <wx/intl.h>
#include <wx/string.h>
//*)
//(*IdInit(FrmTips)
const long FrmTips::ID_EdSearchFrmTips = wxNewId();
const long FrmTips::ID_GridTips = wxNewId();
const long FrmTips::ID_BtAddFrmTips = wxNewId();
//*)
//(*IdInit(FrmCadTips)
const long FrmCadTips::ID_LbCodFrmCadTips = wxNewId();
const long FrmCadTips::ID_EdCodFrmCadTips = wxNewId();
const long FrmCadTips::ID_LbRegisteredFrmCadTips = wxNewId();
const long FrmCadTips::ID_EdRegisteredFrmCadTips = wxNewId();
const long FrmCadTips::ID_LbModifiedFrmCadTips = wxNewId();
const long FrmCadTips::ID_EdModifiedFrmCadTips = wxNewId();
const long FrmCadTips::ID_LbTipTitleFrmCadTips = wxNewId();
const long FrmCadTips::ID_EdTipTitleFrmCadTips = wxNewId();
const long FrmCadTips::ID_LbHashtagFrmCadTips = wxNewId();
const long FrmCadTips::ID_EdHashtagFrmCadTips = wxNewId();
const long FrmCadTips::ID_LbLinkFrmCadTips = wxNewId();
const long FrmCadTips::ID_EdLinkFrmCadTips = wxNewId();
const long FrmCadTips::ID_EdTipFrmCadTips = wxNewId();
const long FrmCadTips::ID_BtSaveFrmCadTips = wxNewId();
const long FrmCadTips::ID_BtHashtagsFrmCadTips = wxNewId();
//*)
//(*IdInit(FrmHashtags)
const long FrmHashtags::ID_EdSearchFrmHashtgs = wxNewId();
const long FrmHashtags::ID_GridHashtags = wxNewId();
const long FrmHashtags::ID_BtAddFrmHashtags = wxNewId();
//*)
//(*IdInit(FrmCadHashtags)
const long FrmCadHashtags::ID_LbHashtagFrmCadHashtags = wxNewId();
const long FrmCadHashtags::ID_EdHashtagFrmCadHashtags = wxNewId();
const long FrmCadHashtags::ID_LbSynonymsFrmCadHashtags = wxNewId();
const long FrmCadHashtags::ID_EdSynonymsFrmCadHashtags = wxNewId();
const long FrmCadHashtags::ID_BtSaveFrmCadHashtags = wxNewId();
const long FrmCadHashtags::ID_BtDeleteFrmCadHashtags = wxNewId();
//*)
FrmTips::FrmTips(wxWindow *parent, wxWindowID id) {
//(*Initialize(FrmTips)
Create(parent, wxID_ANY, _("Sistema One 2019"), wxDefaultPosition, wxDefaultSize, wxCLOSE_BOX|wxMINIMIZE_BOX, _T("wxID_ANY"));
SetClientSize(wxSize(800,600));
EdSearchFrmTips = new wxSearchCtrl(this, ID_EdSearchFrmTips, wxEmptyString, wxPoint(5,5), wxSize(600,30), 0, wxDefaultValidator, _T("ID_EdSearchFrmTips"));
GridTips = new wxGrid(this, ID_GridTips, wxPoint(5,40), wxSize(790,555), 0, _T("ID_GridTips"));
GridTips->CreateGrid(10,1);
GridTips->EnableEditing(false);
GridTips->EnableGridLines(true);
GridTips->SetColLabelSize(20);
GridTips->SetRowLabelSize(1);
GridTips->SetDefaultColSize(775, true);
GridTips->SetColLabelValue(0, _("Tips"));
GridTips->SetDefaultCellFont( GridTips->GetFont() );
GridTips->SetDefaultCellTextColour( GridTips->GetForegroundColour() );
BtAddFrmTips = new wxButton(this, ID_BtAddFrmTips, _("Add"), wxPoint(710,5), wxSize(85,30), 0, wxDefaultValidator, _T("ID_BtAddFrmTips"));
Center();
Connect(ID_BtAddFrmTips,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&FrmTips::OnBtAddFrmTipsClick);
//*)
}
FrmCadTips::FrmCadTips(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size) {
//(*Initialize(FrmCadTips)
Create(parent, wxID_ANY, _("Sistema One 2019"), wxDefaultPosition, wxDefaultSize, wxCLOSE_BOX|wxMINIMIZE_BOX, _T("wxID_ANY"));
SetClientSize(wxSize(800,600));
LbCodFrmCadTips = new wxStaticText(this, ID_LbCodFrmCadTips, _("Cod:"), wxPoint(5,5), wxDefaultSize, 0, _T("ID_LbCodFrmCadTips"));
EdCodFrmCadTips = new wxStaticText(this, ID_EdCodFrmCadTips, _("14082019163000"), wxPoint(35,5), wxDefaultSize, 0, _T("ID_EdCodFrmCadTips"));
LbRegisteredFrmCadTips = new wxStaticText(this, ID_LbRegisteredFrmCadTips, _("| Registered:"), wxPoint(138,5), wxDefaultSize, 0, _T("ID_LbRegisteredFrmCadTips"));
EdRegisteredFrmCadTips = new wxStaticText(this, ID_EdRegisteredFrmCadTips, _("14/08/2019 00:25:00"), wxPoint(212,5), wxDefaultSize, 0, _T("ID_EdRegisteredFrmCadTips"));
LbModifiedFrmCadTips = new wxStaticText(this, ID_LbModifiedFrmCadTips, _("| Modified:"), wxPoint(335,5), wxDefaultSize, 0, _T("ID_LbModifiedFrmCadTips"));
EdModifiedFrmCadTips = new wxStaticText(this, ID_EdModifiedFrmCadTips, _("14/08/2019 00:25:00"), wxPoint(395,5), wxDefaultSize, 0, _T("ID_EdModifiedFrmCadTips"));
LbTipTitleFrmCadTips = new wxStaticText(this, ID_LbTipTitleFrmCadTips, _("Tip:"), wxPoint(20,40), wxDefaultSize, 0, _T("ID_LbTipTitleFrmCadTips"));
EdTipTitleFrmCadTips = new wxTextCtrl(this, ID_EdTipTitleFrmCadTips, wxEmptyString, wxPoint(60,35), wxSize(600,30), 0, wxDefaultValidator, _T("ID_EdTipTitleFrmCadTips"));
EdTipTitleFrmCadTips->SetMaxLength(100);
LbHashtagFrmCadTips = new wxStaticText(this, ID_LbHashtagFrmCadTips, _("Hashtag:"), wxPoint(5,80), wxDefaultSize, 0, _T("ID_LbHashtagFrmCadTips"));
EdHashtagFrmCadTips = new wxTextCtrl(this, ID_EdHashtagFrmCadTips, wxEmptyString, wxPoint(60,75), wxSize(600,30), 0, wxDefaultValidator, _T("ID_EdHashtagFrmCadTips"));
EdHashtagFrmCadTips->SetMaxLength(250);
LbLinkLbFrmCadTips = new wxStaticText(this, ID_LbLinkFrmCadTips, _("Link:"), wxPoint(15,120), wxDefaultSize, 0, _T("ID_LbLinkFrmCadTips"));
EdLinkFrmCadTips = new wxTextCtrl(this, ID_EdLinkFrmCadTips, wxEmptyString, wxPoint(60,115), wxSize(600,30), 0, wxDefaultValidator, _T("ID_EdLinkFrmCadTips"));
EdLinkFrmCadTips->SetMaxLength(150);
EdTipFrmCadTips = new wxTextCtrl(this, ID_EdTipFrmCadTips, wxEmptyString, wxPoint(5,155), wxSize(790,440), wxTE_MULTILINE, wxDefaultValidator, _T("ID_EdTipFrmCadTips"));
BtSaveFrmCadTips = new wxButton(this, ID_BtSaveFrmCadTips, _("Save"), wxPoint(670,35), wxSize(90,30), 0, wxDefaultValidator, _T("ID_BtSaveFrmCadTips"));
BtHashtagsFrmCadTips = new wxButton(this, ID_BtHashtagsFrmCadTips, _("Hashtags"), wxPoint(670,75), wxSize(90,30), 0, wxDefaultValidator, _T("ID_BtHashtagsFrmCadTips"));
Center();
Connect(ID_BtHashtagsFrmCadTips,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&FrmCadTips::OnBtHashtagsFrmCadTipsClick);
Connect(wxID_ANY,wxEVT_CLOSE_WINDOW,(wxObjectEventFunction)&FrmCadTips::OnCloseFrmCadTips);
//*)
}
FrmHashtags::FrmHashtags(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size) {
//(*Initialize(FrmHashtags)
Create(parent, wxID_ANY, _("Sistema One 2019"), wxDefaultPosition, wxDefaultSize, wxCLOSE_BOX|wxMINIMIZE_BOX, _T("wxID_ANY"));
SetClientSize(wxSize(800,600));
EdSearchFrmHashtgs = new wxSearchCtrl(this, ID_EdSearchFrmHashtgs, wxEmptyString, wxPoint(5,5), wxSize(600,30), 0, wxDefaultValidator, _T("ID_EdSearchFrmHashtgs"));
GridHashtags = new wxGrid(this, ID_GridHashtags, wxPoint(5,40), wxSize(790,555), 0, _T("ID_GridHashtags"));
GridHashtags->CreateGrid(10,2);
GridHashtags->EnableEditing(true);
GridHashtags->EnableGridLines(true);
GridHashtags->SetColLabelSize(20);
GridHashtags->SetRowLabelSize(1);
GridHashtags->SetDefaultColSize(385, true);
GridHashtags->SetColLabelValue(0, _("Hashtag"));
GridHashtags->SetColLabelValue(1, _("Synonyms"));
GridHashtags->SetDefaultCellFont( GridHashtags->GetFont() );
GridHashtags->SetDefaultCellTextColour( GridHashtags->GetForegroundColour() );
BtAddFrmHashtags = new wxButton(this, ID_BtAddFrmHashtags, _("Add"), wxPoint(710,5), wxSize(85,30), 0, wxDefaultValidator, _T("ID_BtAddFrmHashtags"));
Center();
Connect(ID_BtAddFrmHashtags,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&FrmHashtags::OnBtAddFrmHashtagsClick);
//*)
// 775 é o tamanho total que tenho pra usar no grid
GridHashtags->SetColSize(0,100); // Column Hashtags
GridHashtags->SetColSize(1,675); // Column Synonyms
}
FrmCadHashtags::FrmCadHashtags(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size) {
//(*Initialize(FrmCadHashtags)
Create(parent, id, _("Sistema One 2019"), wxDefaultPosition, wxDefaultSize, wxCLOSE_BOX|wxMINIMIZE_BOX, _T("id"));
SetClientSize(wxSize(510,165));
Move(wxDefaultPosition);
LbHashtagFrmCadHashtags = new wxStaticText(this, ID_LbHashtagFrmCadHashtags, _("Hashtag:"), wxPoint(5,5), wxDefaultSize, 0, _T("ID_LbHashtagFrmCadHashtags"));
EdHashtagFrmCadHashtags = new wxTextCtrl(this, ID_EdHashtagFrmCadHashtags, wxEmptyString, wxPoint(5,25), wxSize(500,30), 0, wxDefaultValidator, _T("ID_EdHashtagFrmCadHashtags"));
EdHashtagFrmCadHashtags->SetMaxLength(20);
LbSynonymsFrmCadHashtags = new wxStaticText(this, ID_LbSynonymsFrmCadHashtags, _("Synonyms:"), wxPoint(5,60), wxDefaultSize, 0, _T("ID_LbSynonymsFrmCadHashtags"));
EdSynonymsFrmCadHashtags = new wxTextCtrl(this, ID_EdSynonymsFrmCadHashtags, wxEmptyString, wxPoint(5,80), wxSize(500,30), 0, wxDefaultValidator, _T("ID_EdSynonymsFrmCadHashtags"));
EdSynonymsFrmCadHashtags->SetMaxLength(250);
BtSaveFrmCadHashtags = new wxButton(this, ID_BtSaveFrmCadHashtags, _("Save"), wxPoint(320,120), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BtSaveFrmCadHashtags"));
BtDeleteFrmCadHashtags = new wxButton(this, ID_BtDeleteFrmCadHashtags, _("Delete"), wxPoint(420,120), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BtDeleteFrmCadHashtags"));
Center();
Connect(ID_BtSaveFrmCadHashtags,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&FrmCadHashtags::OnBtSaveFrmCadHashtagsClick);
//*)
}
What I think I understand is that I should declare all other forms within FrmTips
And if that's the case, I really don't know how to do that.
the repeated includes is Codeblocks creating automatic, I have to be removing all the time manually.