[Lazarus] TControl.IsParentShowHint
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Wed Oct 26 12:40:34 CEST 2011
zeljko schrieb:
> On Wednesday 26 of October 2011 03:35:31 Hans-Peter Diettrich wrote:
>
> > This method looks as if it could be removed. A property ParentShowHint
>
> > exists already, which does exactly the same.
>
>
> This method is added because code from application.inc must access
> parentshowhint from TControl, but it's protected there, so
> IsParentShowHint is introduced.
Okay so far, I missed the different visibility.
BTW such problems make it impossible to implement another (Delphi
compatible) DragManager :-(
> I didn't want to change visibility of ParentShowHint in TControl, so
> added IsParentShowHint.
Why not implement it as just another property?
public property IsParentShowHint read FParentShowHint;
DoDi
More information about the Lazarus
mailing list