--- Alexandre Kazantsev <[EMAIL PROTECTED]> wrote:
> How to handle disable/enable sound on ctlRepeatEvent 
> properly? Are there examples or articles covering the 
> issue?

I believe the sound you are talking about is made by
SndPlaySystemSound(sndClick) when the control event handler sends
itself another ctlRepeatEvent.  One option might be to turn off system
sounds using PrefSetPreference(prefSysSoundLevelV20, slOff) when you
get the first ctlRepeatEvent.  Then you should turn sound back on --if
it was previously on-- when you get either ctlSelectEvent or
ctlExitEvent for that control.  Make sure you return false for
ctlRepeatEvent or the OS will stop the ctlRepeatEvent loop.

I haven't done this, so it is possible I'm missing something, but I
think it will probably work.  The downside to this is that you are
modifying normal behavior of the system, so you probably shouldn't do
it.  Why do you want to disable sound on ctlRepeatEvent?


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to