Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behavior of a container based class
Message
De
23/07/2009 18:05:15
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01414031
Message ID:
01414094
Vues:
71
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I have a ZipCityStateCounty container based class. In this class there are labels and textboxes and combobox for the city. The labels were originally named as Label1, Label2, etc.
>
>They were all set to AutoSize.
>
>I renamed the labels to lblZip, lblCity, etc.
>
>I did nothing else, yet I found that on the form where I had the instance of this class (which had the different size of the top container), the labels were all on the wrong place now.
>
>I had to Edit both forms and in both of them adjust the labels positions.
>
>Was it a result of my renaming the labels? Does it mean that all instances of this class in all forms will have to be checked now?
>
>I made bunch of changes in this class today - is there a way to save all my changes except for renaming? Would renaming labels back solve the problem?

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.

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...)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform