Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Amendments to Class not holding
Message
De
08/09/1999 12:36:37
 
 
À
08/09/1999 10:28:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00262390
Message ID:
00262449
Vues:
17
Is there any code in the base class of the button or group that changes the caption at runtime? Possibly in the init or refresh. For example, on a form I may change the caption of a button from "Add" to "Save" depending on if I am editing a new record or an existing one.




>got a class of my own making based on thread advice months ago. Its a commandgroup with most of the buttons doing what I want throughout the application.
>
>In one particular form, however, two of the buttons need to do something different.
>
>I've given them new captions and new click procedures without a 'dodefault' so the original behaviour is suppressed.
>
>What I actually get is ONE of the buttons looking and behaving exactly as required.
>
>The other refuses to wear its new caption but DOES run the new click code!!! (I've even tried forcing its caption name in the commandgroup's refresh method, without success)
>
>I've done a total recompile and I've tried saving the amended version as a class in its own right and then using that instead. No joy.
>
>Any prods in the right direction would be much appreciated
>
>Harry
Mark Johns
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform