How to make an element enabled when a condition is met

Follow

Comments

4 comments

  • Avatar
    Michael Cluff

    Thanks!  I have a similar issue: I'm wondering if it's possible to show a checkbox disabled while in a checked state.  (Such as in a multi-step process in which a user's previously-used settings are shown for reference but cannot be edited.)  When I disable the checkbox, the box is shown as unchecked regardless of the state of the variable.  

  • Avatar
    Joe Brenner

    Michael, is this still happening? Check Boxes should maintain their checked state when disabled but display the check in a greyed out manner.

  • Avatar
    Michael Cluff

    Looks like the 3-state control is what I was looking for.  But in case it helps, here's an example of what was happening for me:

    1-BeforeEnable.jpg

    • Option 1 and Option 2 box properties are set to be "Checked" and "Disabled" by default.  Option 2 enable is yoked to GroupEnable tagged in the Group Box properties.  
    • Though the checkboxes are both set to be checked by default, the check is not visible.  (This is what I was asking about).
    2-AfterEnable.jpg
    • After setting enable, Option 2 is checked (and 1 isn't, as it isn't linked to GroupEnable)
    3-Solution.jpg
    • The new box "ThisOneWorks" is set as a 3-state box defaulting to the third state.  Success!

    M

     

     

     




    3-Solution.jpg
    2-AfterEnable.jpg
    1-BeforeEnable.jpg
  • Avatar
    Joe Brenner

    Hi Michael,

    Thanks for the explanation and the images. It seems that the "Windows Classic" and "Windows XP Classic" visual styles render disabled Check Boxes without the tick, regardless of whether they've been checked or not. The other visual styles show the tick in this case.

    I'm not sure if this is correct behaviour or not. It's been a long while since we've seen an NT box or fiddled with the Windows settings to revert to that style.

    If you can confirm the correct behaviour is to display a greyed out tick for disabled, checked boxes on NT then we can fix this for the next release.

    Thanks,
    Joe

     

Please sign in to leave a comment.

Powered by Zendesk