Article # 11, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Name of document on primary's 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's GDCI_features instance. 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. This is true only when you are using a DisplayControl object. If you are not using a DisplayControl then leave the GDCF_NAME_ON_PRIMARY flag set.