Skip to content
Extraits de code Groupes Projets
Valider 53f429c1 rédigé par Niels Martin Hansen's avatar Niels Martin Hansen
Parcourir les fichiers

Fixed tooltip hints in Auto4/Lua config dialogs.

Originally committed to SVN as r1306.
parent 405c2637
Branches
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -181,7 +181,9 @@ namespace Automation4 {
wxControl *Create(wxWindow *parent)
{
return cw = new wxTextCtrl(parent, -1, text, wxDefaultPosition, wxDefaultSize, 0);
cw = new wxTextCtrl(parent, -1, text, wxDefaultPosition, wxDefaultSize, 0);
cw->SetToolTip(hint);
return cw;
}
void ControlReadBack()
......@@ -216,6 +218,7 @@ namespace Automation4 {
{
cw = new wxTextCtrl(parent, -1, text, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE);
cw->SetMinSize(wxSize(0, 30));
cw->SetToolTip(hint);
return cw;
}
......@@ -281,10 +284,12 @@ nospin:
wxControl *Create(wxWindow *parent)
{
if (hasspin) {
return cw = new wxSpinCtrl(parent, -1, wxString::Format(_T("%d"), value), wxDefaultPosition, wxDefaultSize, min, max, value);
cw = new wxSpinCtrl(parent, -1, wxString::Format(_T("%d"), value), wxDefaultPosition, wxDefaultSize, min, max, value);
} else {
return cw = new wxTextCtrl(parent, -1, text, wxDefaultPosition, wxDefaultSize, 0); //, IntTextValidator());
cw = new wxTextCtrl(parent, -1, text, wxDefaultPosition, wxDefaultSize, 0); //, IntTextValidator());
}
cw->SetToolTip(hint);
return cw;
}
void ControlReadBack()
......@@ -347,7 +352,9 @@ nospin:
typedef wxValidator FloatTextValidator;
wxControl *Create(wxWindow *parent)
{
return cw = new wxTextCtrl(parent, -1, text, wxDefaultPosition, wxDefaultSize, 0); //, FloatTextValidator());
cw = new wxTextCtrl(parent, -1, text, wxDefaultPosition, wxDefaultSize, 0); //, FloatTextValidator());
cw->SetToolTip(hint);
return cw;
}
void ControlReadBack()
......@@ -411,7 +418,9 @@ nospin:
wxControl *Create(wxWindow *parent)
{
return cw = new wxComboBox(parent, -1, value, wxDefaultPosition, wxDefaultSize, items, wxCB_READONLY);
cw = new wxComboBox(parent, -1, value, wxDefaultPosition, wxDefaultSize, items, wxCB_READONLY);
cw->SetToolTip(hint);
return cw;
}
void ControlReadBack()
......@@ -466,7 +475,9 @@ nospin:
wxControl *Create(wxWindow *parent)
{
return cw = new wxCheckBox(parent, -1, label);
cw = new wxCheckBox(parent, -1, label);
cw->SetToolTip(hint);
return cw;
}
void ControlReadBack()
......
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