Copyright © 1993, 1994 by Apple Computer, Inc. All rights reserved. by Maurice Sharp This sample gives interrim access to the Recognition Toggle proto (recToggle). recToggle was accidentally left out of NTK 1.0b4, but will appear later.... What is it For? --------------- The recToggle proto can be used to turn word and shape recognition on and off. It can also be used to double-tap into the appropriate preference. How does it work? ----------------- Any time a user writes/draws into a field that has the input part of the viewFlags set to vAnythingAllowed, the system will check the state of text and graphics recognition set by this button. If one or both of the recognition types have been turned off, no recognition of that type will be attempted. Ahh you say, vAnythingAllowed, I do not see that as an option for NTK. You are correct, you have to workaround this. Check out the clEditView in the recToggleDemo.t file. It has an afterScript (documented elsewhere), that will set the viewFlags to vAnythingAllowed and vVisible. In other words, any type of input is valid and it is visible. For a list of possible flags see the documentation. NOTE: vAnythingAllowed is NOT the same as checking all possible input types in NTK. It also involves marking it as Phone & Date & ... you get the idea. (Look at the actual values of the constants in the NTK Definitions for more info.) ALSO NOTE: some views use entryFlags instead of viewFlags. Use the same trick