Carbon


Control Key Script Behavior Constants

Header: Controls.h

enum {
    kControlKeyScriptBehaviorAllowAnyScript = 'any ',
    kControlKeyScriptBehaviorPrefersRoman = 'prmn',
    kControlKeyScriptBehaviorRequiresRoman = 'rrmn'
};

Constant descriptions

kControlKeyScriptBehaviorAllowAnyScript

Does not change the current keyboard and allows the user to change the keyboard at will. This is the default for non-password fields.

kControlKeyScriptBehaviorPrefersRoman

Changes the current keyboard to Roman whenever the editable text field receives focus but allows the user to change the keyboard at will. This is the default for password fields.

kControlKeyScriptBehaviorRequiresRoman

Changes the current keyboard to Roman whenever the editable text field receives focus and does not allow the user to change the keyboard.

With the Mac OS 8.5 Control Manager, you can use these constants of type ControlKeyScriptBehavior to specify the kind of behavior to be used in an editable text control with respect to changing and locking the keyboard menu as the field is focused. The ControlKeyScriptBehavior constants are set and retrieved with the kControlEditTextKeyScriptBehaviorTag control data tag constant; for details on kControlEditTextKeyScriptBehaviorTag, see “Mac OS 8.5 Editable Text Control Data Tag Constants”.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)