Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dbclick in grid is not working
Message
De
19/01/2000 03:46:32
 
 
À
18/01/2000 15:26:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00319588
Message ID:
00319738
Vues:
15
Thanks for your reply,

I create a object in my class gridtextbox2
I placed a wait window in de dbclick() methode en Valid() methode

I used the removeobject methode to remove the standard text1.
I used addobject en (tried newobject)to add to gridtextbox2.

If i click the textbox i seems that the valid methode and dbclick are not
working.

What is gone wrong do i something wrong

Kind regards


Jan Dorresteijn


>>I have a problem that there are no columns in that grid at disign time.
>>I add them during runtime using the methode addcolumn. I do no know how change standard dbclick from the added column
>
>In this case, I would create a textbox class that you use onlt for Grids, and in the DoubleClick put:
>
>This.Parent.Parent.ControlDblClick(This)
>
>Then when you add a column remove the default textbox and add yours (You should be able to find many threads about this if you need help). And in your gridclass add the method ControlDblClick() with a parameter. Now, you just move your code from DblCLick() to COntrolDblClick() in the grid.
>
>This trick is very handy for all parts of the grid. Example: it allows you to have only one Header class in code, but every grid may have a different method for the header being clicked, because the code is in the grid instance :-)
>
>Good Luck!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform