home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5324 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.1 KB

  1. Path: sparky!uunet!ogicse!pdxgate!parsely!agora!bobb
  2. From: bobb@agora.rain.com (Bob Beauchemin)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Non-copyable TextField
  5. Message-ID: <1992Jul29.162437.3218@agora.uucp>
  6. Date: 29 Jul 92 16:24:37 GMT
  7. Article-I.D.: agora.1992Jul29.162437.3218
  8. Sender: bobb@agora.uucp (Bob Beauchemin)
  9. Organization: Open Communications Forum
  10. Lines: 20
  11.  
  12.  
  13.   I'm trying to make a subclass of TextField object that cannot be copied
  14. with the cut/copy keys or cut/copy menu entries. I made a subclass called
  15. XTextField and set it up with a "empty" copy method (ie a copy method that
  16. does nothing but printf("copy method invoked").
  17.   However, I can still copy the text and my custom copy method does not
  18. ever appear to get invoked during the COPY operation.
  19.  
  20.   I've read that all TextField objects share the same Text object for
  21. rendering text. Can I override the COPY method in this Text object somehow?
  22. Is this why my subclass of TextField with a custom COPY method will not
  23. work?
  24.  
  25.   Does anyone have/know of any examples of a TextField (or Text) subclass
  26. that cannot be copied?
  27.  
  28.   Thanks,
  29.  
  30. Bob Beauchemin
  31. bobb@agora.rain.com
  32.