Slider 在disable的状态下仍然可以通过鼠标点击来改变value
Opened this issue · 0 comments
GoogleCodeExporter commented
解决方法:
在Doevent里面 ButtonUP事件中加个判断. 如下:
if( event.Type == UIEVENT_BUTTONUP )
{
int nValue;
if( (m_uButtonState & UISTATE_CAPTURED) != 0 ) {
m_uButtonState &= ~UISTATE_CAPTURED;
}
//fix bug: disable control is not working by ReadBai
if( !IsEnabled() )
return;
.....
Original issue reported on code.google.com by pro...@gmail.com
on 27 Feb 2014 at 3:46