1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#include "clGetTextFromUserDialog.h"
#include "windowattrmanager.h"
clGetTextFromUserDialog::clGetTextFromUserDialog(
wxWindow* parent, const wxString& title, const wxString& message, const wxString& initialValue, int charsToSelect)
: clGetTextFromUserBaseDialog(parent)
{
SetTitle(title);
m_staticTextCaption->SetLabel(message);
m_textCtrl->ChangeValue(initialValue);
if(charsToSelect != wxNOT_FOUND && charsToSelect < (int)m_textCtrl->GetValue().Length()) {
m_textCtrl->SetSelection(0, charsToSelect);
} else {
m_textCtrl->SelectAll();
}
//WindowAttrManager::Load(this);
CenterOnParent();
SetName("clGetTextFromUserDialog");
}
clGetTextFromUserDialog::~clGetTextFromUserDialog() {}
|