Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying Properties from one object to another
Message
 
À
24/09/1998 14:30:24
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00140507
Message ID:
00141048
Vues:
24
>...And for the famous third way to do it < g >. For a label, heck, I'd just copy the one I like, and copy the caption from the old one to the new one and delete the old one.
>
>But, then again, I assume your need is a bit more complicated than one label, right? Oh, well, we say there are 3 solutions to every problem--not that there are 3 _good_ solutions < g >.
>
>
>>I have a form in VFP 6.0 and have a label established already and would like another label to have the properties as the first. Is there a way I can chose one label and set all properties (or pick those I want to set) to those of another label on the same form.
>>
>>TIA
Just keep in mind Nancy, that anything were to ever change on a global level in the application and you've overwritten the properties, that's many more places you have to go to change things in your app.

The best approach, of course, is to create a generalized parent class. That's to say, a class that has common properties, events, and methods, set to particular values.

One example of how to do this would be to create a subclass of the VFP label base class and not to change anything. Then, create a new subclass based off the subclass you just created and set up its properties, events, and methods.

Keep in mind that you want a universal look & feel throughout your application so your users can become comfortable that things will generally appear a certain way.
Travis Vandersypen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform