On Wed, 10 May 2006 17:55:05 +0200
darekM <[EMAIL PROTECTED]> wrote:
> Mattias Gaertner napisa?(a):
> > On Wed, 10 May 2006 09:16:44 +0200
> > darekm <[EMAIL PROTECTED]> wrote:
> >
> >
> >> Mattias Gaertner wrote:
> >>
> >>
> >>> On Tue, 09 May 2006 23:17:13 +0200
> >>> darekm <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>> HI
> >>>> as in subject
> >>>> and some const
> >>>>
> >>>>
> >>>>
> >>> Where is the code that implements the property?
> >>>
> >>>
> >>>
> >> what code
> >>
> >> property Alignment: TPopupAlignment read FAlignment write FAlignment
> >> default paLeft;
> >>
> >>
> >> its only declaration
> >>
> >
> > Why do we need a property without function?
> >
> >
> 1.Compatibility with Delphi
Delphi uses and sets the property. For example in TMenuItem.AdvancedDrawItem
and TPopupMenu.UseRightToLeftAlignment.
> I need it to derived object
> 2.Its better in OOP use property than raw field, in future in descendant
> object we can override by the function
Can you give an example?
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives