Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behavior of a container based class
Message
 
 
To
23/07/2009 18:05:15
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01414031
Message ID:
01414098
Views:
33
>I think there's some discrepancy in the non-default properties (namely, positioning) that may have been set in the forms for the labels in this class, under previous names. You may just go and reset them all to default, that should clean them out, i.e. force the controls to re-inherit from the class.
>

In the original forms the other controls were adjusted (in design time), since the control itself was smaller than class size and there is no run-time (and of course no design-time) resize for this control.

I think I'll leave my changes and whatever is going to break because of this change, we'll eventually find it out and fix.

>As for renaming back... backup and try. I usually stay away from renaming back... actually, I give them proper names when creating them, i.e. before there's ever any instance anywhere, so I don't have to do that. (How do I know this, then? Well, others' classes...)

I like new names better - so I'll keep them. I actually always give proper names to everything in my classes / forms, etc., even if it's just a label never intended to be called / changed.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform