In Delphi, how do you assign a component's property values before creating an app's main form?-Collection of common programming errors
TMS’s FormSize component saves aForm’s size and position in an .ini file. This file’s path is stored in the component’s SaveName property. I would like to assign FormSize.SaveName to a file in the user’s AppData folder. I can find the AppData path in my source code.
Does anyone know where (in my code) I assign the AppData path to FormSize.SaveName? I am thinking the FormSize component is created, and a default SaveName initialized, BEFORE aForm is created. In other words, FormSize loads the config file BEFORE aForm’s FormCreate event fires; assigning a value to FormSize.SaveName during aForm.FormCreate is too late.
Thanks, as always.