home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!gatech!ncar!uchinews!news
- From: colin@agincourt.bsd.uchicago.edu (& Garrett)
- Subject: Re: Non-copyable TextField
- Message-ID: <1992Jul30.145739.1042@midway.uchicago.edu>
- Sender: news@uchinews.uchicago.edu (News System)
- Organization: University of Chicago Computing Organizations
- References: <1992Jul29.162437.3218@agora.uucp>
- Date: Thu, 30 Jul 1992 14:57:39 GMT
- Lines: 29
-
- In article <1992Jul29.162437.3218@agora.uucp> bobb@agora.rain.com (Bob
- Beauchemin) writes:
- >
- > I'm trying to make a subclass of TextField object that cannot be
- copied
- > with the cut/copy keys or cut/copy menu entries. I made a subclass
- called
- > XTextField and set it up with a "empty" copy method (ie a copy method
- that
- > does nothing but printf("copy method invoked").
- > However, I can still copy the text and my custom copy method does not
- > ever appear to get invoked during the COPY operation.
- >
- > I've read that all TextField objects share the same Text object for
- > rendering text. Can I override the COPY method in this Text object
- somehow?
- > Is this why my subclass of TextField with a custom COPY method will not
- > work?
- >
- > Does anyone have/know of any examples of a TextField (or Text)
- subclass
- > that cannot be copied?
-
- Why not just set a regular TextField to be non-selectable? Cut/copy/paste
- have to have a selection to work on.
-
-
- Colin Garrett
- colin@delphi.bsd.uchicago.edu
-