Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and Double-click.
Message
From
06/08/2001 06:24:51
 
 
To
06/08/2001 04:37:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00536813
Message ID:
00540050
Views:
25
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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform