void Search::init() { SetMacroMode(MACROAREA_SEARCH); SetRestoreScreenMode(true); m_FindEdit = std::make_unique<EditControl>(shared_from_this(), this); m_FindEdit->SetEditBeyondEnd(false); m_FindEdit->SetObjectColor(COL_DIALOGEDIT); InitPositionAndSize(); }
/***** Constructor *****/ tmwxLogFrame::tmwxLogFrame() : tmwxPersistentFrame<wxFrame>(wxT("Log"), wxFRAME_TOOL_WINDOW | wxCAPTION | wxRESIZE_BORDER | wxCLOSE_BOX) { mTextCtrl = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY); mTextCtrl->SetFont(DEFAULT_FONT_10); wxLogTextCtrl* logTextCtrl = new wxLogTextCtrl(mTextCtrl); wxLog* oldTarget = wxLog::SetActiveTarget(logTextCtrl); if (oldTarget) delete oldTarget; // This comes last so that we already have a log target to receive debug // messages. InitPositionAndSize(); }
void Search::ResizeConsole() { InitPositionAndSize(); }