Emmanual, It sounds like you were attempting to surface the abstract property of TAlignment from TControl. 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 and take your queue from them.
Dave --- On Mon, 4/27/09, Rob Kennedy <[email protected]> wrote: From: Rob Kennedy <[email protected]> Subject: Re: [delphi-en] Re: Problems implementing TAlignment behaviors To: [email protected] Date: Monday, April 27, 2009, 8:50 PM Emmanuel Lamy wrote: > In delphi...@yahoogrou ps.com, Rob Kennedy <rkenn...@.. .> wrote: >> What do you do with FAlignment when you create the window handle? >> >> If you don't do anything, then that's the problem. > > I am not sure I understand what you mean. But the field FAlignment > has been declared in the private section of the unit, and the > property Alignment published as to take its value when "read", and > execute the procedure SetAlignment to reset its value when "writing" > the property. The SetAlignment is declared in the protected section > as a virtual method. > > What else should I do with the field? Anticipated thanks. How does anything know what to _do_ with that field? Where does its value get read? You call RecreateWnd. Why? What are you expecting that to do, and how are you expecting it to do it? You've given the control a property named "Alignment," but that doesn't magically mean the control does anything related to aligning things any more than giving a control a property named "Odor" makes the computer smell bad. You have to write code to make the properties do things, or else you need to find where previous code was already expecting you to add something. -- Rob [Non-text portions of this message have been removed]

