Article View: comp.sys.next.programmer
Article #315Non-copyable TextField
From: Bob Beauchemin
Date: Wed, 29 Jul 1992 16:24
Date: Wed, 29 Jul 1992 16:24
20 lines
1174 bytes
1174 bytes
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?
Thanks,
Bob Beauchemin
bobb@agora.rain.com
Technical Details
Message-ID:
<1992Jul29.162437.3218@agora.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!pdxgate!parsely!agora!bobbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!pdxgate!parsely!agora!bobb From: bobb@agora.rain.com (Bob Beauchemin) Newsgroups: comp.sys.next.programmer Subject: Non-copyable TextField Message-ID: <1992Jul29.162437.3218@agora.uucp> Date: 29 Jul 92 16:24:37 GMT Article-I.D.: agora.1992Jul29.162437.3218 Sender: bobb@agora.uucp (Bob Beauchemin) Organization: Open Communications Forum Lines: 20