WxBell

From WxWiki

Jump to: navigation, search

[edit] wxBell

The wxBell function rings the system bell.

[edit] Gotcha's

On Microsoft Windows, the wxBell always sounds when a user presses ENTER in any wxTextCtrl.

This is a Windows design error, but can be worked around by capturing the enter key on the EVT_KEYDOWN event, and don't call event.Skip(). That suppresses the ding.

Personal tools