TMiniFMXSettings Class
Definition
Used as a singleton to manage the settings of your project. Access to its properties by TMiniFMXSettings.Current.
type TMiniFMXSettings = class(TObject)
- Inheritance
-
TObjectTMiniFMXSettings
Remarks
Never create a new instance of this class. Just use TMiniFMXSettings.Current. Never free or destroy the instance of this class. The unit do it for you.
Constructors
Properties
| CustomStyleName |
Name of the custom style (by default or customized by the user) |
| DarkStyleName |
Name of the dark style (by default or customized by the user) |
| Language |
The language you should use on screen and messages |
| LightStyleName |
Name of the light style (by default or customized by the user) |
| StyleMode |
Style mode choosen by the user. |
Methods
| BeginUpdate |
Allow parameters changes but delay the Save operation to the EndUpdate call. |
| Current |
Return the instance to TMiniFMXSettings singleton |
| EndUpdate(Boolean) |
Closes the block of code started with BeginUpdate. If you did some changes, it saves them by default. |
| GetParams |
Use GetParams function in your TSettingsHelpers to access global settings storage and add your own parameters. |
| GetPath |
Returns current path of the config file (directory+filename) |
| Save |
Save current settings. |