Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select From Grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00277803
Message ID:
00277937
Vues:
25
>Mike,
>
>Yes, it is somewhat clearer. Thanks for your patience. Now, what code changes do I have to make to have the double click fire the grid and not the text box?
>
>>If you put a grid on a form, in order to add things like CheckBoxes, Combos, or change code in the default TB's you must adjust the ColumnCount from the default -1 to a number. THat will create the columns along with the modifiable Headers and TextBoxes for you. Usually I build my columns at run-time and leave columncount at -1 in designtime, thus I would have to find another way (like adding a TB class at run-time as well). Is that clearer?

You can't. What you have to do is have the TextBox's DblClick method call the Grids DblClick method.

*TextBox.DblClick
this.Parent.Parent.DblClick()

Note that it is Parent.Parent, because the TextBox is a member of Column and Column is a member of Grid. You'll need to do this for each TextBox in each column.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform