Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic question about inheritance
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00097029
Message ID:
00097036
Vues:
22
>Hi. I have a question.
>
>Example: An application is in-place with a few thousand text boxes based on the class AtxTextBox. In some of these text boxes there is coding in the LostFocus method for whatever reason. Time passes. Now a request is made to change the behaviour of the AtxTextBox. Lets say it is a request to change the ForeColor property when it has focus. I would think coding a ForeColor change in the GotFocus and LostFocus methods would make sense. The problem is that any of the controls based on the AtxTextBox control that have coding in the LostFocus method will not run the default code (changing the color back). Is there a simple way around this or will these text boxes have to be found and a DoDefault() stuck in all of the problem children.
>
>BTW, this is just an example of the question. I am not looking for a specific solution to this question (unless it could be applied to all similar situations).
>
>Thanks,
>Joe

Yes, in VFP5 you would have to put DoDefault() in the textboxes you have already placed on forms. In VFP3 use the scope resolution operator (::)
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform