For button 1 give it this Hide Object When Expression
For Button 2, give it:
Use the inspector to give both buttons an object name.
In the script attached to the button that brings the slide control panel to the front, add this code:
Set Variable [$$ButtonVisibility ; value: True ] // for button 1
Set Variable [$$ButtonVisibility ; value: False ] // for button 2
In the script for both buttons then add Refresh object steps to refresh both buttons as one will appear and the other disappear each time you click a button.
$$ButtonVisibility is what you enter as Name:
False is all that you enter as Value:
Ok I closed the layout and reopened it and all seems to be working now. Thank you.
I don't see anything wrong in the screenshots, but these are very "busy" layouts.
Compare your design to this working demo and maybe you'll spot what's not quite right.
If you put the buttons on panel, you don't need to hide
Or, you can use one button to toggle panel, change button lavel using merge variable <<$$variable>>as button text and GetLayoutObjectAttribute ( obj ; "isFrontPanel" ) etc.
I actually did that, but thanks. I also did get them working after to closed the file and opened it again.