Unit 'MUIClass.Base' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#MUIClass]

TMUIApplication.Save

Save program configuration for items with ObjectIDs

Declaration

Source position: MUIClass.Base.pas line 241

public procedure TMUIApplication.Save(

  ToEnvarc: Boolean

);

Arguments

ToEnvarc

  

True = save to EnvArc:; False Save to ENV:

Description

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

String class
String.Contents is ex/imported
Radio class
Radio.Active is ex/imported
Cycle class
Cycle.Active is ex/imported
List class
List.Active is ex/imported
Text class
Text.Contents is ex/imported
Area class
Area.Selected is ex/imported (e.g. CheckMarks)
MenuItem class
MenuItem.Checked is ex/imported
Group class
Group.ActivePage is ex/imported

See also

Load()

  

Load program configuration for items with ObjectID

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!


Documentation generated on: 2024-11-24