[fpc-pascal] Property alias

Krzysztof dibo20 at wp.pl
Fri Dec 7 16:18:24 CET 2012


Thanks


2012/12/7 Howard Page-Clark <hdpc at talktalk.net>

> On 07/12/12 2:50, Krzysztof wrote:
>
>> Hi,
>>
>> Interfaces can have aliases for functions:
>>
>>      Function MyOtherFunction : Integer;
>>      Function IMyInterface.MyFunc = MyOtherFunction;
>>
>> Can normal object have aliases for properties? For example,
>> TControl.Caption. I would like to publish this property in my descendant
>> as "MyExtraText". Is this possible?
>>
>
> You can, of course, define a MyExtraText property with a setter and getter
> that refer to an existing property (or data field if it is accessible).
>
> Howard
>
>
> ______________________________**_________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20121207/1f413f82/attachment.html>


More information about the fpc-pascal mailing list