event of button color

This commit is contained in:
Edouard Dupin 2012-03-11 20:48:06 +01:00
parent f1cdfdc811
commit f0ac6bb64c
2 changed files with 8 additions and 4 deletions

View File

@ -276,6 +276,6 @@ void ewol::ButtonColor::OnReceiveMessage(ewol::EObject * CallerObject, const cha
(uint8_t)(tmpColor.alpha * 0xFF));
//set the new label ...
SetLabel(colorText);
GenerateEventId(ewolEventButtonColorChange);
}
}

View File

@ -287,9 +287,13 @@ bool ewol::ColorBar::OnEventInput(int32_t IdInput, eventInputType_te typeEvent,
(uint8_t)(estimateColor.alpha * 0xFF));
EWOL_DEBUG("new color : " << colorText);
*/
m_currentColor = estimateColor;
GenerateEventId(ewolEventColorBarChange);
if( m_currentColor.red != estimateColor.red
|| m_currentColor.green != estimateColor.green
|| m_currentColor.blue != estimateColor.blue
|| m_currentColor.alpha != estimateColor.alpha) {
m_currentColor = estimateColor;
GenerateEventId(ewolEventColorBarChange);
}
return true;
}
}