Create two buttons. Set their names in the property in properties inspector (note: their names, not their label). Name one “action” and one named “payButton”.
To stop the button “payButton” from displaying its name as its label, put a space into its label. Now you should have two buttons, one with the text “action” and one with no text.
Edit the script of button “action” and copy paste this text into it:
Code: Select all
On mouseUp
Set the label of button “payButton” to “Raise an invoice”
End mouseUp