Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is autocenter not autocenter
Message
 
 
To
02/04/2003 20:50:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00772234
Message ID:
00773385
Views:
10
>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?

Yes, you're right. It's a bug. See BUG: Form Cannot Override Parent Class AutoCenter Setting mskb #Q191998.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform