<br><br><div class="gmail_quote">On Tue, Jan 18, 2011 at 11:25 AM, <span dir="ltr"><<a href="mailto:michael.vancanneyt@wisa.be">michael.vancanneyt@wisa.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
<br>
On Tue, 18 Jan 2011, Max Vlasov wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Mon, Jan 17, 2011 at 2:08 PM, Michael Van Canneyt <<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
wrote:<br>
</blockquote><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
...<br>
<br>
Var<br>
LabelDefaults : TLabelDefaults;<br>
<br>
Which are applied as soon as a TLabel control is created.<br>
<br>
</blockquote>
<br>
I liked the idea, but to understand it correctly... You placed it in "var",<br>
isn't it supposed to be placed on a form like any other TComponent? ...<br>
</blockquote>
<br></div>
No, I actually meant a var, because I want it to be application-wide.<br>
<br></blockquote></div><br>Hmm, Michael, I understand you here, but I think that the main drawback about application-wide (so possibly run-time only) is about losing design-time magic. For example when you have 10 panels, go change some design-time property and they changed their view all at once without even running anything. If they're form-only and design-time, you still can imitate application-wide defaults inheriting from common ancestor and placing all you defaults there, but you will keep this magic at your fingers<br>
<br>Max Vlasov<br>