On Monday, Sep 29, 2003, at 10:12 Europe/London, Robert Purves wrote: > > On Monday, September 29, 2003, Bernie Wylde wrote: > >> How do I prevent a text control (_kControlEditTextProc) from >> accepting a CR? >> I have a window with a few edit text controls and a default push >> button. When I hit return, the button reacts correctly but I get a CR >> in the selected text control. > Install a ControlKeyFilter on the text control. The demo shows a > filter that allows entry of keys 0-9 only. You can easily modify > MyNumFilterProc to block CR but allow all other characters. Thanks Robert Bernie