Fix bugs #775 and #776, missing initialisation of controls in Auto4 Lua dialogues. (Untested.)

Originally committed to SVN as r2335.
This commit is contained in:
Niels Martin Hansen 2008-09-10 14:56:29 +00:00
parent f89b9d6c43
commit aca234ebcc
1 changed files with 2 additions and 1 deletions

View File

@ -418,7 +418,7 @@ nospin:
typedef wxValidator FloatTextValidator;
wxControl *Create(wxWindow *parent)
{
cw = new wxTextCtrl(parent, -1, text, wxDefaultPosition, wxDefaultSize, 0); //, FloatTextValidator());
cw = new wxTextCtrl(parent, -1, PrettyFloatF(value), wxDefaultPosition, wxDefaultSize, 0); //, FloatTextValidator());
cw->SetToolTip(hint);
return cw;
}
@ -543,6 +543,7 @@ nospin:
{
cw = new wxCheckBox(parent, -1, label);
cw->SetToolTip(hint);
static_cast<wxCheckBox*>(cw)->SetValue(value);
return cw;
}