Load program configuration for items with ObjectID
Source position: MUIClass.Base.pas line 239
public procedure TMUIApplication.Load( |
FromEnvarc: Boolean |
); |
FromEnvarc |
|
True = load from EnvArc:; False Load from 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
|
Save program configuration for items with ObjectIDs |
|
|
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! |