Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding an Event for a TextBox in a Grid Programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00696764
Message ID:
00696816
Vues:
16
You need to remove the "normal" textbox and replace it with your own class textbox. In this class Click method you would have something like:
if type('this.parent.parent.name')='C' and lower(this.parent.baseclass) = 'column'
   this.parent.parent.Click(this) && Assuming your grid class has parameters in Click method
endif
See FAQ by Mike Helland about adding controls in Grid on the fly.

>Hi,
>
>I have a grid on a form that I am having to set the properties for on the fly.
>
>Is there a way to pass the double click event programmatically.
>
>I have tried the following syntax:
>
>FormName.PageFrame.PageNumber.GridName.ColumnName.TextBoxName.DblClick = 'ThisForm.DisplayName'
>
>
>Any suggestions would be greatly appreciated.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform