Added ability to change color of the labels of the system or modified values

This commit is contained in:
YuSanka 2018-04-30 14:20:33 +02:00
parent dd10ccfcef
commit 2d4cac0018
6 changed files with 158 additions and 18 deletions

View file

@ -164,6 +164,13 @@ public:
return false;
}
bool set_label_colour_force(const wxColour *clr) {
if (m_Label == nullptr) return false;
m_Label->SetForegroundColour(*clr);
m_Label->Refresh(true);
return false;
}
bool set_undo_tooltip(const wxString *tip) {
if (m_undo_tooltip != tip) {
m_undo_tooltip = tip;
@ -194,7 +201,7 @@ protected:
wxStaticText* m_Label = nullptr;
// Color for Label. The wxColour will be updated only if the new wxColour pointer differs from the currently rendered one.
const wxColour* m_label_color;
const wxColour* m_label_color = nullptr;
// current value
boost::any m_value;