Hey! Not sure if you figured this out, but one solution could be to have a second button directly on top of the first button, set to hidden on load . Then when the first button is pressed, it shows the menu and shows the second button, with the second button set up to close the menu. That way it would look like it’s the same button. You could even change the text of the 2nd button to say “close” if you wanted.
Something like this:
export function iconButton1_click(event) {
$w("#horizontalMenu1").show ()
$w("#iconButton1").hide ()
$w("#iconButton2").show ()
}
export function iconButton2_click(event) {
$w("#horizontalMenu1").hide ()
$w("#iconButton1").show ()
$w("#iconButton2").hide ()
}