Article # 275, added by Geoworks, historical record
| first | previous | index | next | last |

Text object isn't doing the undo, but it did work at first.



Q. I recently changed my program from multiple-document interface
   to single-document interface. When I open a document, everything
   works fine. When I close that document and open a second one, the
   Undo no longer works. What gives? (I'm using a text object for
   the document.)

A. For some reason or another the text object is being told to
   not send undo messages to the EditControl. To fix this, in your
   MSG_META_DOC_OUTPUT_ATTACH_UI_TO_DOCUMENT method (or wherever is
   appropriate for your program), send the message

      @send textObj::MSG_VIS_TEXT_SET_FEATURES( VTF_ALLOW_UNDO, 0 );

   This will make the text object turn on it's undo support.