Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Caption in Commandbutton in grid
Message
 
À
08/05/1998 09:21:37
Ranjit Londhe
Anglo Eastern Ship Mgmt Ltd.
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00098023
Message ID:
00098069
Vues:
31
>You can assign recno() as your command buttons caption.
>Note that this approach will not work if your table (the grid's rowsource) is

Actually, this approach will not work because when the button is instanced, Recno() has a value. And.... that value is applied to the CommandButton. I say THE - because there is only one command button. Try setting sparse to .F. and run the form with the grid. Then, issue code to change the Caption Property of the CommandButton. They all change - because it is only one commandbutton - displayed for each record.

If you just wanted to display a TextBox, or some other bound control that has it would work because of the nature of bound controls.

Therefore, a combination of setting the Value Property of a TextBox to =Recno() and using DynamicCurrentControl() might work. The characteristics of the TextBox can be made to look like a button - gray backgound and so forth. Since the other rows won't be active , it is fairly transparent.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform