[Lazarus] LCL improvement idea

Max Vlasov max.vlasov at gmail.com
Tue Jan 18 11:31:50 CET 2011


On Tue, Jan 18, 2011 at 11:25 AM, <michael.vancanneyt at wisa.be> wrote:

>
>
> On Tue, 18 Jan 2011, Max Vlasov wrote:
>
>  On Mon, Jan 17, 2011 at 2:08 PM, Michael Van Canneyt <
>> michael at freepascal.org
>>
>>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110118/23eb3e72/attachment-0003.html>


More information about the Lazarus mailing list