[futurebasic] Re: [FB] Blocking CR in text control

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2003 : Group Archive : Group : All Groups

From: Bernie Wylde <bernie.w@...>
Date: Mon, 29 Sep 2003 10:27:11 +0100
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