Emmanuel Lamy wrote: > In [email protected], 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

