Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set max chars for Unicode Edit Text control?



Am 26.07.2004 um 05:53 schrieb Scott Thompson:

First, you might want to provide your control with a key filter using
the kControlKeyFilterTag with SetControlData. The Key Filter tag will
allow you to access the contents of the control as each key is pressed.
You have the ability to accept, or reject, keystrokes using that
filter. Next, you will probably want a validation proc (using
kControlEditTextValidationProcTag). This procedure can be used to
validate the contents of the field when data is pasted into the
control.

I tried Laurence' suggestion installing an kEventTextInputUnicodeForKeyEvent handler, but it failed for Japanese. I have to try your suggestion.


Thanks,

Manfred
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Set max chars for Unicode Edit Text control? (From: Laurence Harris <email@hidden>)
 >Re: Set max chars for Unicode Edit Text control? (From: Manfred Schubert <email@hidden>)
 >Re: Set max chars for Unicode Edit Text control? (From: Scott Thompson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.