Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider 在disable的状态下仍然可以通过鼠标点击来改变value #100

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

解决方法:

在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 [email protected] on 27 Feb 2014 at 3:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant