Skip to content
Extraits de code Groupes Projets
Valider ec07db26 rédigé par Thomas Goyne's avatar Thomas Goyne
Parcourir les fichiers

Implement TransferToWindow in DoubleValidator. Closes #1606.

parent 9174650c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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()
{
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter