On Tue, Jan 18, 2011 at 11:25 AM, <[email protected]> wrote:

>
>
> On Tue, 18 Jan 2011, Max Vlasov wrote:
>
>  On Mon, Jan 17, 2011 at 2:08 PM, Michael Van Canneyt <
>> [email protected]
>>
>>> wrote:
>>>
>>
>> ...
>>>
>>> Var
>>>  LabelDefaults : TLabelDefaults;
>>>
>>> Which are applied as soon as a TLabel control is created.
>>>
>>>
>> I liked the idea, but to understand it correctly... You placed it in
>> "var",
>> isn't it supposed to be placed on a form like any other TComponent? ...
>>
>
> No, I actually meant a var, because I want it to be application-wide.
>
>
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

Max Vlasov
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to