Hiding buttons based on an input

Forum Home Forums Understanding the Software Hiding buttons based on an input

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4648
    DavidWatkin
    Participant

    Hi, is there a way to hide buttons on the scheme based on an input value?

    If input is a 1, button is visable and usable, if 0 it is hidden. Like with dynamic pictures.

    Thanks

    Dave

    #4650
    DavidWatkin
    Participant

    Sorry I posted the above quickly on my phone, I should specify some more.

    I could achieve the above using dynamic images as buttons and having an empty image when the input value = 0 however, the space still remains clickable even when no image is present, I would like that when the input value = 0 that the elements are actually hidden so the command cannot be sent even by clicking on the empty space where the button was.

    Is this possible?

    Dave

    #4653
    Mikhail
    Moderator

    Hi,

    You need the Button component. It has “Bound Property” where you can choose “Visible”. And specify the Input channel property. This channel controls visibility.

    #4656
    DavidWatkin
    Participant

    Perfect that works, didn’t realise what the bound property actually did.

    Now is it possible to make it appear on a 0 and disappear on a 1? So far from my testing it works the opposite way and I can’t seem to find a way to change it. What controls the bound property logic?

    Thanks for the help so far.

    Dave

    #4662
    Mikhail
    Moderator

    Now is it possible to make it appear on a 0 and disappear on a 1?

    Use a formula for an appropriate input channel to convert value.
    Example: Cnl > 0 ? 0 : 1

    What controls the bound property logic?

    Buttons only as I remember. The proper way is creating a flexible mechanism to bound any property of any component to a channel. I hope we will do it in the future.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.