Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dbclick in grid is not working
Message
 
 
À
19/01/2000 10:33:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00319588
Message ID:
00319917
Vues:
20
Ed,

>>>>
>>>>>I need a dubbel click in a grid to select
>>>>>If i use the methode dbclick() nothing is happen.
>>>>
>>>>You need to put your DblClick() code in the DblClick() event of the textbox in the grid, not the grid itself.
>>>
>>>Thanks for you reply.
>>>
>>>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
>>>
>>
>> The solution, which just came up into my head (not an easy one, though) is remove text1 and substitute with your class with DblClick code on the fly...
>
>Why is this hard?

I didn't say it's hard, I said it's not easy :) It requeres at least to have this class... BTW, in my Input classes I created Inp_Grid with ability to change standard TextBox class to be my class in Run time. I have a question:
After RemoveObject('text1')
NewObject('text1', CustomClass, ClassLib)
text1.visible=.t.
Do I need to add also
CurrentControl='text1'
or I don't?


Anyway, another alternative would be to create a method on the fly. Right now we haven't AddMethod() method/function in VFP, but it definitely would be a great and useful feature in VFP7.0. I believe, Mike Helland already put it in VFP7.0 Wish list, if not, I'll do it by myself.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform