Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DblClick in a Grid
Message
De
08/08/1998 23:06:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00125042
Message ID:
00125084
Vues:
14
Create your own textbox class to insert into the grid's columns. Put the parent.parent code into your own textbox class's methods. In the init of the grid, loop through the columns deleting the textbox for each column and replacing it with your own, and while you're at it, set the column's sparse to .F.

That's about it.

If you create your own grid class with this code in the init, you'll never have to think about it again.

Alan

>John:
>Thanks for your advise, but that's exactly what I don't want to do, go to every cell's click and dblclick method and write a call the parent.parent's event, think of any other alternative?
>
>
>>Its the Cell's Click() and DblClick() that will fire. If you want to centralize your code, put the Click() and DblClick() in the Grid. In TextBox Object's Click() and DblClick(), put this code in:
>>
>>In the Click()
>>
>>This.Parent.Parent.Click() && for the Grid.Click()
>>
>>In the DblClick()
>>
>>This.Parent.Parent.DblClick() && for the Grid.DblClick()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform