>>Maybe you meant the GetControlsAlignmen t method, which is virtual, >>although not abstract. TCustomMemo overrides it to hook it into the >>Alignment property that it introduces. The class makes the property _do_ >>something by using it in its CreateParams method.
Okay yea, sounds good. That's what I meant :-). I read the Delphi manual once... a long time ago. Dave P.S. I think DBGrid must have an alignment property too. . --- On Tue, 4/28/09, Rob Kennedy <[email protected]> wrote: From: Rob Kennedy <[email protected]> Subject: Re: [delphi-en] Re: Problems implementing TAlignment behaviors To: [email protected] Date: Tuesday, April 28, 2009, 12:19 AM David Smith wrote: > It sounds like you were attempting to surface the abstract property > of TAlignment from TControl. There's no such thing as an abstract property. Only methods can be abstract, and TControl has no abstract methods. It has an Align property, but everything in it is already fully hooked up. > You also have to add the implementation > code since an abstract property has no implementation, it's just a > place holder so another developer can implement it. Take a look at > the source code for other components that have an implemented > TAlignment property Maybe you meant the GetControlsAlignmen t method, which is virtual, although not abstract. TCustomMemo overrides it to hook it into the Alignment property that it introduces. The class makes the property _do_ something by using it in its CreateParams method. > and take your queue from them. Yes, TCustomMemo. CreateParams is the *cue* Emmanuel is looking for. -- Rob [Non-text portions of this message have been removed]

