Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

wxPerl wxComboBox Error Sound

by dimar (Curate)
on Dec 07, 2006 at 16:36 UTC ( #588390=perlquestion: print w/replies, xml ) Need Help??

dimar has asked for the wisdom of the Perl Monks concerning the following question:

Problem: Using wxPerl wxComboBox control produces an "error sound" when TAB key or RETURN key is pressed inside the focused control.

Question: Does anyone know the mechanism for disabling this? So far, search has turned up nada.

Background: Consider the standard "modal dialogs" in msft windows (file-open dialog is an example). If you open the dialog box, and then click your mouse anywhere *outside* the dialog box, the system produces an "error sound" such as a beep or something similar, as if to say "Hey wait a minute! First deal with the dialog box!" Well, this is exactly the sound that occurs if you press return or tab while focused on a wxComboBox control. It would be nice to get rid of that, hence the question.


Replies are listed 'Best First'.
Re: wxPerl wxComboBox Error Sound
by dimar (Curate) on Dec 08, 2006 at 00:43 UTC
    No example, because I deduced that anyone unfamiliar with the problem would be unfamiliar with a fix. If you have wxPerl on your system, however, you can run the following script to see what I am talking about:
    ## Name: ## Author: Mattia Barbon
    If you don't have the script just Google for the Name and Author and you will find a copy of it.
    • run the script
    • choose the "Wx::ComboBox" page
    • set focus on the ComboBox control on the page
    • make sure your computer speakers are activated
    • press the TAB key or the RETURN key
    • listen

      I don't get an error sound.
        Did you try it on your Windows box? If so, can you tell me which version of the script you ran so I can look at the code?

Re: wxPerl wxComboBox Error Sound
by Anonymous Monk on Dec 07, 2006 at 23:57 UTC
    Do you have a small example that demonstrates the problem?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://588390]
Approved by willyyam
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2021-01-27 22:41 GMT
Find Nodes?
    Voting Booth?