Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and Double-click.
Message
 
 
À
07/08/2001 08:16:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00536813
Message ID:
00540657
Vues:
23
Shaishav,

I guess it's time for you to show code in both methods (Click and Double Click), so it would be clear, where is a problem... I assume, that you put both methods in a textbox control in a grid and not in Grid or Column itself (check for this to be sure).

>Dear Vlad,
>
>What you mean to say is, when I double click on grid, the first click fires some code and which is still executing while I press the second click and hence not firing the dblclick event??
>
>If I remove everything from Click event and try to DblClick still it is not running the code.
>
>If I keep the same code in click event it will work. Why?
>
>Regards
>Shaishav
>
>
>>Hi!
>>
>>As I said, the problem could be because the code of DblClick event is lost. However, if reconstruction is not a case, take a look to the speed of the code running between the first and second click. There is quite large chain of events between forst click on the grid and second during DoubleClick clicking. When code running too slow, it might not finish before second click is made, so VFP cannot handle second click and, as result, do not respond to it as to DoubleClick.
>>
>>HTH.
>>
>>
>>>Thanks Vlad,
>>>
>>>It worked for one of the grids, however other grids the problem remains. If I add code to Click event, it works. But if I put in DblClick event it does not fires.
>>>
>>>Any other idea,
>>>
>>>Regards
>>>Shaishav
>>>
>>>>Hi!
>>>>
>>>>and its dynamically filled
>>>>
>>>>What you meant by that? If you meant refreshing of second grid when record moved in first grid by changing the SQL statement for second grid, you probably experiense a grid reconstruction that remove all code from second grid columns. See FAQ #8019.
>>>>
>>>>HTH.
>>>>
>>>>>Hi Nancy,
>>>>>
>>>>>First, thanks for your reply.
>>>>>
>>>>>The code is in the dblclick method of TextBox. And still it wouldnot fire.
>>>>>
>>>>>I want to display two Grids with differnt data. However the basic funtion is very similar. In both the Grids,
>>>>>
>>>>>RECORDSOURCETYPE = 4 (SQL)
>>>>>
>>>>>and its dynamically filled. Both the grids are identical in a sense they perform the same task while double clicked. It works in first grid but not in second.
>>>>>
>>>>>Both the grids are on a container.
>>>>>Pls let me know if you have any solution to this.
>>>>>
>>>>>Regards
>>>>>Shaishav Merchant
>>>>>
>>>>>>>Dear All UT Memebers,
>>>>>>>
>>>>>>>I have included two Grids on a container. Both of them are being updated during runtime. The RecordSourceType of both the grids is 4 (SQL).
>>>>>>>
>>>>>>>When double-click on Column1.text1 it should launch a form. Both the Grids are almost identical, just two different procedure to fill them, and Grid 1 is 3 column and Grid 2 is 2 columns.
>>>>>>>
>>>>>>>Double Click function works properly for Grid1 but it does not respond for Grid2. If I call the Grid2.column1.text1.dblclick event, it works. But if I double click it does not work.
>>>>>>
>>>>>>If I understand you correctly, this is how grids work. The textbox's events will fire and not the grids, unless the event occurs on a blank area of the grid.
>>>>>>
>>>>>>I'm not sure why the two grids are different, but if you want to be able to doubleclick on a textbox (or other object) in a grid, then you put the code in that object's doubleclick. Not the Grid.
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