Good point, bad code example.
However I didn't discover this by defining classes of forms and their subclasses in code.
I left out the seminal point. These classes are visual classes in a library. If I design a form based on my 1st level form subclass (not my base class), and, at design time, override the autocenter property so that autocenter is false, the form will show centered when run contraty to my wishes.
Ah but if I design a form from my base form class, that form behaves as expected, it shows at the top most and left most position.
This is eminently reproducable.
Create form1 as form in myforms.vcx (set autocenter to .F.)
Create form2 as form1 in myform.vcx
Design a form based on form2.
Set AutoCenter to .F. on the property sheet.
Run the form.
It will show centered.
What is up with that?
Barry Taft
i am only worried in the short term. once there is a problem, the solution usually presents itself.