How to disable a BUTTON or RADIO button widget?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Hi Smorgan,

    I use WM_DisableWindow().

    "Description
    Disables the specified window. The WM does not pass user input messages (touch,
    mouse, joystick, ...) to a disabled window.

    Additional information
    A widget that is disabled will typically appear gray, and will not accept input from the
    user. However, the actual appearance may vary (depends on widget/configuration
    settings, etc.).
    A disabled window will not receive the following messages: WM_TOUCH,
    WM_TOUCH_CHILD, WM_PID_STATE_CHANGED and WM_MOUSEOVER.
    "


    regards
    Thomas