Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!spool.mu.edu!news.cs.indiana.edu!ariel.unm.edu!nmsu!opus!ogden From: ogden@nmsu.edu (Bill Ogden) Newsgroups: comp.windows.open-look Subject: Re: textsw filters Message-ID: Date: 22 Mar 91 16:17:05 GMT References: Sender: news@NMSU.Edu Organization: Computing Research Lab Lines: 24 In-reply-to: openlook-request@openlook's message of 18 Mar 91 17:21:11 GMT >> I'd like to be able to write a filter like Fmt or Capitalize and >> have no trouble getting the selection, even deleting the selection, >> but how do I get the filtered text back to the textsw window? >> A compainion to the SELN_REQ_DELETE attribute (like perhaps >> SELN_REQ_INSERT) would be nice. Has anyone done this? > > How about using textsw_replace_bytes()? > > Frank G. Great idea if I could figure out how to get the handle to the textsw object. Since filters can be called from _any_ text window, I can't figure out how to get this handle. All I get back from the selection service is a handle to the "holder" which is not the same thing. Any ideas? -bill -- Bill Ogden Computing Research Lab Box 3CRL New Mexico State University Las Cruces, NM 88003 email: ogden@nmsu.edu