05-07-2024, 01:53 PM
I have an app with multiple buttons, each of which should do an almost identical thing:
log the fact that the button has been pressed (and the date, time, ....)
If I was doing it in Livecode, I could :
1. put the buttons in a group, and have the group script do " .... logmessage(the short name of the target) ..."
or
2. have a behaviour script that did logmessage(the short name of me), and use that for all these buttons
or
3. at the very least, do "logmessage(the short name of me)" in the script before copying/pasting/duplicating the buttons.
I can't see any way to do anything similar in Appli - currently I am copy+pasting the buttons, and then editing each one to change the text string of the button name in the code.
log the fact that the button has been pressed (and the date, time, ....)
If I was doing it in Livecode, I could :
1. put the buttons in a group, and have the group script do " .... logmessage(the short name of the target) ..."
or
2. have a behaviour script that did logmessage(the short name of me), and use that for all these buttons
or
3. at the very least, do "logmessage(the short name of me)" in the script before copying/pasting/duplicating the buttons.
I can't see any way to do anything similar in Appli - currently I am copy+pasting the buttons, and then editing each one to change the text string of the button name in the code.