Article # 269, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Turning off features in GenDocumentControl.
Q. I see that we can supply our own visual monikers for the DocumentControl dialog. If we set those attributes to null will it remove them from the dialog? A. No. What you really want to do is turn the features off in the controller. ATTR_GEN_CONTROL_PROHIBIT_UI is an easy way to do this; it stems from GenControlClass, the super class of GenDocumentControlClass. The feature set for GenDocumentControlClass can be found in the GDCFeatures flags record. As an example (in Goc), to use the default intermediate features but to make sure the New feature is turned off set: ATTR_GEN_CONTROL_PROHIBIT_UI = { GDCF_NEW }; You can also make sure that specific features are supported, by using ATTR_GEN_CONTROL_REQUIRE_UI.