Getting the Message
Posted: Sat May 28, 2016 3:51 am
My stack takes input from the user clicking on buttons
1 to 36. The numbers are shown in a field.
On certain conditions a "beep" sounds.
If the user inputs an incorrect number and wants to
delete it the "Undo" button deletes the last number
input and re-processes the other numbers.
This causes lots of beeps since the same conditions
occur on this "replay".
I want to not have the beeps during the "Undo" process.
I expect that "without messages" will do it but
I still want messages under the normal conditions.
The "Undo" uses the same code as normal input
so I could copy it to the "Undo" mouseUp code
without any ill-effects but a more elegant solution
will satisfy more.
Ideas please with gratitude.
1 to 36. The numbers are shown in a field.
On certain conditions a "beep" sounds.
If the user inputs an incorrect number and wants to
delete it the "Undo" button deletes the last number
input and re-processes the other numbers.
This causes lots of beeps since the same conditions
occur on this "replay".
I want to not have the beeps during the "Undo" process.
I expect that "without messages" will do it but
I still want messages under the normal conditions.
The "Undo" uses the same code as normal input
so I could copy it to the "Undo" mouseUp code
without any ill-effects but a more elegant solution
will satisfy more.
Ideas please with gratitude.