On 5/7/07, Joao Morais <[EMAIL PROTECTED]> wrote:
> An advantage of having it public, is that you can pass a TControl to the
> widget interface and it can access the Color property without resorting
> to cast to decendants. I don't know if this technique is actually used
> though.
There are several properties where this feature would be welcome, eg
tcustomedit.text, tcustomcheckbox.checked, but you can use the following
workaround when necessary:
type
tcustomeditfriend = class(tcustomedit);
...
tcustomeditfriend(edit).edit := 'value';
I agree... And if you are going to use it often, create a local
variable of the 'friend' class so you only need to cast once.
I write many cross compiler (FPC and Delphi) code and keep breaking
the builds under Delphi due to the differences between LCL and VCL.
Luckily the Delphi developers are very lenient. :-)
I know not everything in the LCL would ever be 100% compatible to the
VCL, but we could strive to get it as compatible as possible. That
would really help component developers with porting Delphi components
to Lazarus or developers as myself that maintain components which need
to compile under Lazarus and Delphi.
--
Graeme Geldenhuys
There's no place like S34° 03.168' E018° 49.342'
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives