[Lazarus] Ok I give up!

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sat Mar 2 15:36:26 CET 2013


Reinier Olislagers schrieb:

>> What is *not* clear, to the OP and many other users, that the required
>> functionality is *not* found directly in TMemo, but resides in a
>> property (.Lines) of it. In such cases code completion is of little help
>> :-(
> 
> True, but what other suggestion do you have apart from the ones already
> posted?

Only the obvious one: add the frequently used TStrings methods also to 
TMemo. Either explicitly or in some more elegant way.

E.g. the IStrings interface could be added to TMemo, implemented by 
Lines. That's the usual workaround for the lack of multiple inheritance, 
which here and in other list based controls would be the intuitive way 
for having both the list and control methods and properties in the class.

DoDi





More information about the Lazarus mailing list