Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

A better way to have multiple similar controls.
#1

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.
Reply


Messages In This Thread
A better way to have multiple similar controls. - by alextweedly - 05-07-2024, 01:53 PM
RE: A better way to have multiple similar controls. - by linda - 05-10-2024, 10:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)