Announcement

Collapse
No announcement yet.

How can i change the state of user button in program ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can i change the state of user button in program ?

    How can i change the state of user button in program ?

  • #2
    Hi Pratik,

    May I know which environment you're using?

    If you're using ViSi-Genie, then you can change the button state by setting the Momentary property of the button:
    https://forum.4dsystems.com.au/node/...5095#post65095
    https://www.4dsystems.com.au/appnote/4D-AN-00030/

    If you're using ViSi, then you can use img_SetWord() function: https://www.4dsystems.com.au/appnote/4D-AN-00068/

    Hope this helps and Best Regards,
    Eran

    Comment


    • #3
      Im using visi-genie.
      My case is:
      I have multiple user buttons on my display, when I press one button i want to change that button to ON state at the same time all other buttons should turn to OFF state, and vice versa.
      and i think we cant do that from property settings. we need to do that from programming.
      please guide me to solve this issue.

      Comment


      • #4
        Set the Matrix property of all buttons that you want to be interlocked to the same number (not -1).
        Mark

        Comment


        • #5
          thanx for your reply ESPsupport.
          I have 4 user buttons on my screen A,B,C,D,
          when i press button A , i want to change A to ON state and B,C,D to OFF state
          when i press button B , i want to change B to ON state and A,C,D to OFF state
          when i press button C , i want to change C to ON state and A,B,D to OFF state
          when i press button D , i want to change D to ON state and A,B,C to OFF state

          can u share an example with above conditions?
          Thanx in advance.

          Comment


          • #6
            As I said before, set the matrix property of A, B, C, D to the same number, eg 0

            Then Genie will automatically do that for you
            Mark

            Comment


            • #7
              yes that worked.
              thanx a lot !

              Comment

              Working...
              X