[futurebasic] Re: [FB] fn SendFBDialogEvt

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Bernie <fblist.bw@...>
Date: Fri, 18 Jan 2008 06:29:15 +0000
On 18 Jan 2008, at 04:08, Joe Lertola wrote:

> Well the filter and installer for it are below. If the return or  
> enter key are pressed then the key press is blocked and a _efReturn  
> event is generated so I can react to the edit in the fn DoDialog  
> function.
>
> < ... >
>
> case ( ch == 13 ) // Return key...
> result = _kControlKeyFilterBlockKey
> fn SendFBDialogEvt( _efReturn, 1 ) 'not working in FBtoC
> case ( ch == 3 ) // Enter key...
> result = _kControlKeyFilterBlockKey
>
> < ... >

I haven't tried this, but maybe you could post a custom event with  
FB's dialog statement:

case ( ch == 13 ) // Return key...
result = _kControlKeyFilterBlockKey
dialog = 13// post user dialog event
case ( ch == 3 ) // Enter key...
result = _kControlKeyFilterBlockKey
dialog = 3// post user dialog event

// ...

local fn DoDialog

// ...

select ( ev )
case _userDialog
select ( id )
case 13// return key
// ...
case 3// enter key
// ...
end select
end select

// ...

end fn


Bernie