Google Answers Logo
View Question
 
Q: Mac OS X Programming: Dialogs, Controls and Events ( No Answer,   0 Comments )
Question  
Subject: Mac OS X Programming: Dialogs, Controls and Events
Category: Computers
Asked by: stevex-ga
List Price: $15.00
Posted: 28 Aug 2002 12:53 PDT
Expires: 28 Aug 2002 13:54 PDT
Question ID: 59561
I have a Macintosh / Carbon programming question.  I'm writing an
application in C++ and I have a dialog, created with Interface
Builder.  In this dialog I have a number of text edit controls, and
the text in these controls is a specific format:  A floating point
number with two digits after the decimal point.

I want to restrict input to these controls so that if the user types
invalid characters (anything but a number of a decimal point) the
system will beep, but otherwise allow normal editing (so backspace,
arrow keys etc still work).

The rest of the application uses Carbon Events so I'd like to use that
here too.. I understand you can process text input using Apple events,
but that's not what I want to do here if I can avoid it.
How do I do this?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy