[futurebasic] Re: [FB] filtering a paste

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

From: Brian Stevens <brilor@...>
Date: Sun, 21 Nov 2004 05:20:44 -0700

There are some options here:

1) Use the DIALOG _preview _efchanged event. As I recall there is a 
problem with this and the appearance runtime. It has been a while since 
I worked on it, so forgive me if this is not entirely accurate. I 
believe _efchanged either did not work at all or would only work with 
EDIT FIELDs and not control-based edit fields (EDITTEXTPROC type). 
Bernie found a one line change to the appearance runtime that solves 
the problem but changing the runtime has obvious drawbacks. If you want 
Bernie's change, email me off list. Bear in mind that _efchanged is not 
limited to changes by a paste, so this might not be the ticket for you.

2) Don't use EDIT MENU 2  (EDIT MENU 0 turns off automatic handling of 
the edit menu)  to create the edit menu and build your own edit menu 
and intercept the menu events yourself. Obviously, this is a much 
bigger job.

HTH some.....Brian

On Nov 20, 2004, at 5:35 PM, Michael Evans wrote:

> Hello all:
> can some one tell me how to intercept a paste action to filter out 
> unwanted characters?
> for example:
> chr$(0) to chr$(31) (non-printing characters)
> or any other character that I want filtered out....
> Cheers,
> -------------------
> Michael Evans
> [SFSG]
> -------------------
> --