Home AMX User Forum AMX Technical Discussion

Can a Button be Transparent to Touch?

Greetings,

I have a G4 UI on which there is an active touch bargraph. I have additional buttons on top of the bar graph that serve as a scale.

Is it possible to make the buttons on top of the bargraph transparent to touch so that the touch occurs to the bargraph below the top buttons?

Thank you.

Comments

  • Spire_JeffSpire_Jeff Posts: 1,917
    I believe you set the button TOUCH STYLE property to PASS THROUGH. This is on the general tab of the button properties. ACTIVE TOUCH makes only the parts with visible graphics active, and BOUNDING BOX makes the entire button active.

    Jeff
  • DHawthorneDHawthorne Posts: 4,584
    Spire_Jeff wrote:
    I believe you set the button TOUCH STYLE property to PASS THROUGH. This is on the general tab of the button properties. ACTIVE TOUCH makes only the parts with visible graphics active, and BOUNDING BOX makes the entire button active.

    Jeff
    Yup, I use that property all the time. It's great for making composite buttons where you might want two bitmaps active at the same time, or two different text fonts on the same button. You just make the background transparent, kill the border, drag it on top of your other button, and set this property to pass-through.

    TPD4 has some tools that wll make your life a lot simpler once you start doing things like this. FIrst of all, make sure you change the default button name to something that describes your overlay button. The default is to name it after the text, but that won't help you distinguish it from the button under it. This is important, becuase you may have trouble selecting your overlya by clicking it, especially if it is somewhat hidden. WIth a unique and easily identifiable name, you can use the pulldown list on the properties box to work with it. Also, you will want to use th z-order buttons so you can move it around, which will help you to get it to display exactly how you want it.
Sign In or Register to comment.