Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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.

=oQDlNWYsBHI5JXZ2VGIulGIlJXYgQkUPxEIlhGdgY2bgMXZ5VGIlhGV

Comment on wxPerl wxComboBox Error Sound
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?
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: controls.pl ## 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


    =oQDlNWYsBHI5JXZ2VGIulGIlJXYgQkUPxEIlhGdgY2bgMXZ5VGIlhGV
      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?

        =oQDlNWYsBHI5JXZ2VGIulGIlJXYgQkUPxEIlhGdgY2bgMXZ5VGIlhGV

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-08-23 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (175 votes), past polls