Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DblClick in a Grid
Message
From
08/08/1998 23:06:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00125042
Message ID:
00125084
Views:
15
Create your own textbox class to insert into the grid's columns. Put the parent.parent code into your own textbox class's methods. In the init of the grid, loop through the columns deleting the textbox for each column and replacing it with your own, and while you're at it, set the column's sparse to .F.

That's about it.

If you create your own grid class with this code in the init, you'll never have to think about it again.

Alan

>John:
>Thanks for your advise, but that's exactly what I don't want to do, go to every cell's click and dblclick method and write a call the parent.parent's event, think of any other alternative?
>
>
>>Its the Cell's Click() and DblClick() that will fire. If you want to centralize your code, put the Click() and DblClick() in the Grid. In TextBox Object's Click() and DblClick(), put this code in:
>>
>>In the Click()
>>
>>This.Parent.Parent.Click() && for the Grid.Click()
>>
>>In the DblClick()
>>
>>This.Parent.Parent.DblClick() && for the Grid.DblClick()
Previous
Reply
Map
View

Click here to load this message in the networking platform