Anyone done something like this globally in the app?
I have a tablet app and users wish some feedback when they press any button control in my app. Many buttons I tell you, especially since I’ve created my own virtual keyboard inside the app.
I’ve checked windows system sounds but nothing there regarding button clicking. I don’t wanna edit every single procedure/button adding some “play(‘click.wav’)”
Yeh, it would have to be subtle, really a short click sound, buzz or something. But getting such sound is not a problem, I guess it would have to be a template that would add code to take.event() like
case event()
of event:accepted
if ?{prop:type}=create:button
play('click.wav')
end
end
Yeah, something like that. If the timing of the sound doesn’t “seem right”, you might need to play with alert keys for mouse up or down. A small class could be used in addition to your template.
A quick summary of the steps:
Write the derived class
Put it in a folder that ScanABC knows about
Refresh Classes
In Global Properties > Actions etc. :: change the WindowManager to MyDerivedWindowManager
Regenerate and Compile
Later, If you want to enhance your WindowManager replacement
then alter the class as desired
if there are new methods, that you need embeds for
– save, refresh classes, regenerate
Compile (whether there are new methods or not)