I have made a custom button that looks like a button on a computer keyboard. When not selected it appears to be raised and when selected it appears lowered. The issue I have is when selected the top and bottom of the button change so it is lowered to the centerline ot the button and I would like it to be pressed to the bottom of the image. How can I make this happen?
Thanks for the help!
Solved! Go to Solution.
Don't have LV here and can't make out what you're trying to say.
Generally for an animation like this you want the image for both frames to be the same size. That way you can place the button where you want in the frame to maintain the relative positions you want for each frame.
Does that answer the question?
I believe you are looking for something like this?
You can edit it as a custom control. Open the custom control and enter customise mode, Right click on the button and check the "independent sizes" option. This let's you customise the on state and off state seperately.
You can select the different states by right clicking again and expanding "picture items."
When the button is "up" I left the control as is, when the button is "down" I moved that state so that the base was the same level as the base of the "up" state, leading to the illusion of a keyboard button press.
Hope I explained that well enough and it helps out!