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

"No Document" in window title bar.



Q. In my text editor, if I have two documents opened and I use the
   Window menu to switch between them, the document display will draw
   twice, and the name in the primary's title bar will be "No Document"
   instead of the file's name.

A. Remove the GDCF_NAME_ON_PRIMARY flag in the GenDocumentControl.
   To do this, simply add the following line to your
   GenDocumentControlClass object:

       GDCI_features = @default & ~GDCF_NAME_ON_PRIMARY;

   The document name will still be on the primary's title bar, but
   it won't do the "No Document" thing and the display will stop
   drawing twice after the first time you switch to that document.