Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the same method for all fields in a grid
Message
 
To
26/06/2001 09:28:47
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00523476
Message ID:
00523545
Views:
11
This message has been marked as the solution to the initial question of the thread.
Generally you can just take the class shptransparent or cnttransparent and write your code into DblClick(0 event method.

I will send you more details by e-mail.

>Hi Nick
>
>The click transparent method you describe sounds very useful.
>
>But the link you gave me will not give me the article, just a description:(
>
>I have downloaded the the example files from the location but there are rather a lot of them.
>
>Any ideas on how I get my hands on the article. (apart from getting my credit card out)
>
>Many thanks
>
>
>>>I often use a grid with a doubleclick event that fires a method
>>>ie
>>>
>>>Thisform.GridDoubleClicked()
>>>
>>>At present I have to add this code to the double click event for each field in my grid.
>>>
>>>I would prefer that my grid class to checks to see if my form has the method ThisForm.GridDoubleClicked and if it does then populate the double click event for each field in the grid with a call to the method ThisForm.GridDoubleClicked.
>>>
>>>I suppose one way would be to use a text box class of my own design and have my grids use that as the default field type.
>>>
>>>the doubleclick method for these field types could read something like
>>>
>>>if pemstatus(_screen.activeform,'GridDoubleClicked',3)='Method')
>>> thisform.GridDoubleClicked
>>>return
>>>
>>>
>>>but that seems an awful long way round to do it.
>>>
>>>All Help most gratefully received
>>
>>Hi Mark,
>>Yes, wou would need to replace all textboxes in your grid columns with your textbox class which have the above code in DblClick() With extra code that could be done on the fly also.
>>
>>The alternative method is to cover the cells area of the grid with the click-transparent container. In this case the code will be only in the container.DblClick().
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform