Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add a line of code to dblclick of 52 cells in a grid
Message
 
To
21/02/2008 14:34:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01294893
Message ID:
01294957
Views:
14
>>>Hi
>>>
>>>I want add a line of code programmatically into the dblclick of 52 columns of my grid.
>>>
>>>Can anyone point me in the right direction?
>>>
>>>Many thanks in advance
>>
>>Check BINDEVENT:
>>
>>FOR EACH oCol IN thisform.Grid1
>>    BINDEVENT(oCol,[DblClick], thisform,[ManageDblClick], 1)
>>NEXT
>>
>>*** Create a method in the form named ManageDblClick and put your code there
>>
>>
>>Other way is to create your Own Column Class and use it in the grid.
>
>I am also fairly new to BindEvent, so I have a question: If anything else is already programmed in the specific event (in this case, Column.DblClick()), directly or through inheritance, would that code still be executed? Or would the BindEvent() replace the code, just as if I wrote the code directly and forgot to include DoDefault()?

All depends of Last parameter (nFlag).Check the HELP for nFlag values.
But mainly (what I used so far - 1) Yes the code in the Event will be executed BEFORE the method code specified in BINDEVENT().
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform