{"id":5850,"date":"2014-04-07T09:38:54","date_gmt":"2014-04-07T09:38:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/in-delphi-how-do-you-assign-a-components-property-values-before-creating-an-apps-main-form-collection-of-common-programming-errors\/"},"modified":"2014-04-07T09:38:54","modified_gmt":"2014-04-07T09:38:54","slug":"in-delphi-how-do-you-assign-a-components-property-values-before-creating-an-apps-main-form-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/in-delphi-how-do-you-assign-a-components-property-values-before-creating-an-apps-main-form-collection-of-common-programming-errors\/","title":{"rendered":"In Delphi, how do you assign a component&#39;s property values before creating an app&#39;s main form?-Collection of common programming errors"},"content":{"rendered":"<p>TMS&#8217;s FormSize component saves aForm&#8217;s size and position in an .ini file. This file&#8217;s path is stored in the component&#8217;s SaveName property. I would like to assign FormSize.SaveName to a file in the user&#8217;s AppData folder. I can find the AppData path in my source code.<\/p>\n<p>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&#8217;s FormCreate event fires; assigning a value to FormSize.SaveName during aForm.FormCreate is too late.<\/p>\n<p>Thanks, as always.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TMS&#8217;s FormSize component saves aForm&#8217;s size and position in an .ini file. This file&#8217;s path is stored in the component&#8217;s SaveName property. I would like to assign FormSize.SaveName to a file in the user&#8217;s AppData folder. I can find the AppData path in my source code. Does anyone know where (in my code) I assign [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5850","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5850"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5850\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}