Skip to main content

TdxPrintStyleManager.Version Property

Indicates the version number which is used to restore previously applied changes to styles a developer has made.

Declaration

property Version: Integer read; write;

Property Value

Type
Integer

Remarks

When a style manager is being created it reads version number from a file (if it exists, of course) and the form’s .dfm file.

If the Version number retrieved from the file is not equal to that obtained from the .dfm file, the .dfm file’s data is used to restore styles and when the application is closed the stream is re-written with the current style data. Otherwise, the style data is derived from the file.

So, if a developer leaves the Version property unchanged all the changes to the form he has probably made during the current design-time session will be lost because they will be read from the file.

If a developer changes the Version property at design time the style data is derived from the .dfm file.

However, this property is mainly used to correctly upgrade to a newer version of the same product, when it is absolutely indispensable to avoid using data stored in the old .dfm file.

See Also