Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Caption in Commandbutton in grid
Message
De
11/05/1998 01:16:10
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:
00098424
Vues:
31
John,
I stand corrected. I guess you are right about this.

Ranjit

>>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
Répondre
Fil
Voir

Click here to load this message in the networking platform