Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hierarchy in vfox3
Message
From
15/05/1997 20:30:56
Jon Ziegler
Mannesmann Dematic Corp.
Solon, Ohio, United States
 
 
To
15/05/1997 09:26:54
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00031767
Message ID:
00032521
Views:
39
>>>anyone can tell me about the life of hierarchy in visual foxpro 3?
>>>
>>>because i have some troubles as that my child lost the father changes.... :(
>>>
>>>thanks
>>>Ariel Pablo Klein
>>
>>I've also had problems with class hierarchies (if that's the hierarchy you talked about). For instance, I've set a base form class' AutoCenter property to .T. and forms that have been subclassed from that base form may or may not be AutoCentered. It's one of the many oddities I've found in VFP 3.0
>
>Even though you set a property in a parent class, you can override it in a subclass or instance of the class. Make sure that properties you want to take on the setting you have in your parent class(es) are not in boldface. If they are, right click on them and chose "Reset to default".
>
>BTW, it is common practice to add a property to your "base" form called something like "lAutoCenter" and use that to control form centering. That way, it is easier to work with your forms in the form designer as they aren't centered on the screen. It also prevents problems from moving the form around (usually accidentally) in the form designer. In your form Init() put:
>
>THISFORM.AutoCenter = THISFORM.lAutoCenter
>
>and set "lAutoCenter" to .T. or .F.
>
>-Doug-

I've made sure that the property, AutoCenter in this case, is NOT in bold. I've actually gone to the extent of clicking the Reset to Default (in the right-click popup) for that particular property, just to be sure. I think, though, that I might have moved the form in question around in the Form Designer, after resetting AutoCenter. That's a good idea, though, to add the lAutoCenter property. I'll give that a try. Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform