[futurebasic] Re: [FB] fn CreateEditUnicodeTextControl

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2009 : Group Archive : Group : All Groups

From: Steve <mactech@...>
Date: Sun, 22 Nov 2009 19:41:14 -0500
Hi Brian,

In the example below, it is not CE and it is in FB4.4.  Since it converts to a FB button I would have expected to find an FB event or an EVENT, but I am not getting any events.

Event trapping is HANDLEVENTS with ON DIALOG and ON EVENT.  I am not seeing the return key in either of these FB handlers.

There is no default button [ maybe that's the reason ] in this window, just an edit field created from the code below.

My code previously used appearance button _userEdit, _activeBtn,,,,, @r,  _kControlEditTextProc and I can trap any key I want before it gets to the FB Events handler.

~ steve


On Nov 22, 2009, at 6:01 PM, Brian Stevens wrote:

> 
> On Nov 22, 2009, at 2:11 PM, Steve wrote:
> 
>> I cannot determine when a user hits the return key when using the function below.
>> 
>> ignore = fn CreateEditUnicodeTextControl ( window( _wndRef ), #r, 0, _false, tfs, @c )
>> fn MakeIntoFBButton( c, _userEdit )
> 
> 
> That code creates an EUTC and registers it for FB events. How do you trap events in this EUTC? Can we see some code in event trapping? ( assume this is not CE, but please let us know if it is ).
> 
> 
>> 
>> Hitting Enter will close the edit control, but Return will not and it will place a return in the edit field text.
> Sounds like there is some default button on this window?  What is the behavior you want for Return and Enter?
> 
> 
>> Is it possible to filter this event in FB5 and how ?
> Definitely in CE. Is this CE?
> 
> 
> 
> Brian S
> 
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
>