Implement TransferToWindow in DoubleValidator. Closes #1606.

This commit is contained in:
Thomas Goyne 2013-05-25 15:46:57 -07:00
parent 9174650c1e
commit ec07db2615
1 changed files with 5 additions and 1 deletions

View File

@ -342,7 +342,11 @@ namespace Automation4 {
DoubleValidator(double *value) : value(value) { }
wxValidator *Clone() const { return new DoubleValidator(value); }
bool Validate(wxWindow*) { return true; }
bool TransferToWindow() { return true; }
bool TransferToWindow() {
static_cast<wxSpinCtrlDouble*>(GetWindow())->SetValue(*value);
return true;
}
bool TransferFromWindow()
{