Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double-Click grid does not work
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00143380
Message ID:
00143488
Views:
33
>>I see exactly what you are saying. It seems silly to me that I will have to add this call to the centralized code to 3 places for each column in the grid, simply because VFP ignores the double-click. If I have 5 columns, that's 15 places!! Am I the only person who has tried to use double-click for this purpose? I would have that that the programmers would have forseen the need for this.
>
>Perhaps it would be best to put these calls in your base classes, conditional on a property that could be set in the grid's Init, or even conditional on whether Parent.Parent. is a kindof grid. But that wouldn't help for columns.
>
>I need to add this today, so if I come up with any way to make this easier, I'll post it.

Mark,

I have a grid class that ahs 20 columns in it. I added a property named LastColumn which holds the column number of the last column the user should ever see. The Before and ater row col change events are used to control access to the columns. This way all of the generic code for the columns and controls is written inthe grid class once and forgotten. At design time I drop the grid on the form and set the LastColumn property and forget about it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform