home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5363 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.4 KB  |  41 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!gatech!ncar!uchinews!news
  3. From: colin@agincourt.bsd.uchicago.edu (& Garrett)
  4. Subject: Re: Non-copyable TextField
  5. Message-ID: <1992Jul30.145739.1042@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Organization: University of Chicago Computing Organizations
  8. References: <1992Jul29.162437.3218@agora.uucp>
  9. Date: Thu, 30 Jul 1992 14:57:39 GMT
  10. Lines: 29
  11.  
  12. In article <1992Jul29.162437.3218@agora.uucp> bobb@agora.rain.com (Bob  
  13. Beauchemin) writes:
  14. >   I'm trying to make a subclass of TextField object that cannot be  
  15. copied
  16. > with the cut/copy keys or cut/copy menu entries. I made a subclass  
  17. called
  18. > XTextField and set it up with a "empty" copy method (ie a copy method  
  19. that
  20. > does nothing but printf("copy method invoked").
  21. >   However, I can still copy the text and my custom copy method does not
  22. > ever appear to get invoked during the COPY operation.
  23. >   I've read that all TextField objects share the same Text object for
  24. > rendering text. Can I override the COPY method in this Text object  
  25. somehow?
  26. > Is this why my subclass of TextField with a custom COPY method will not
  27. > work?
  28. >   Does anyone have/know of any examples of a TextField (or Text)  
  29. subclass
  30. > that cannot be copied?
  31.  
  32. Why not just set a regular TextField to be non-selectable?  Cut/copy/paste  
  33. have to have a selection to work on.
  34.  
  35.  
  36. Colin Garrett
  37. colin@delphi.bsd.uchicago.edu
  38.