TConfig Class

Unit: uConfig
System.TObject
  uConfig.TConfig
type TConfig = class(TObject)

The TConfig type exposes the following members.

Show:
 NameDescription
Create

Don't use the constructor, it's used only by the Current() method

Destroy

Don't use the destructor, it's for internal use only

Top
Show:
 NameDescription
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

LicenseActivationNumber

Activation number, given by the server if the license has been activated.

LicenseDeviceName

The device name used during the license activation. Store it only to check if it's still the current one on your device. (in case the settings have been copied to an other computer)

LicenseEmail

User email, given by the user with its license number when registering the software.

LicenseNumber

License number, given by the user with its email address when registering the software

LightStyleName

Name of the light style (by default or customized by the user)

RecentDocuments

Recents documents path

RecentDocumentsCount

Current number of recent documents

RecentDocumentsMaxCount

Maximum number of recents documents

StyleMode

Style mode choosen by the user.

Top
Show:
 NameDescription
BeginUpdate

Allow parameters changes but delay the Save operation to the EndUpdate call.

Current

Return the instance to TConfig singleton

EndUpdate

Closes the block of code started with BeginUpdate. If you did some changes, it saves them by default.

GetPath

Returns current path of the config file (directory+filename)

Save

Save current settings.

Top