Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dbclick in grid is not working
Message
From
18/01/2000 15:26:27
 
 
To
18/01/2000 15:13:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00319588
Message ID:
00319603
Views:
14
>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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform