Save program configuration for items with ObjectIDs
Source position: MUIClass.Base.pas line 241
public procedure TMUIApplication.Save( |
ToEnvarc: Boolean |
); |
ToEnvarc |
|
True = save to EnvArc:; False Save to ENV: |
Each gadget with ObjectID <>0 will get its contents saved during Save() and restored during Load(). This makes it very easy to design a configuration window with "Save", "Use" and "Cancel" buttons to allow the user storing the settings. When the application starts, you would just have to call Load() and the stored settings will be read and installed.
Not all classes are able to import and export their contents. Currently, you may define a ObjectID for
|
Load program configuration for items with ObjectID |
|
|
Objects with a ObjectID <>0 export their contents during MUIApp.Save() and import them during MUIApp.Load(). You have to use different ExportIDs for your objects! |