Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double-Click grid does not work
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00143380
Message ID:
00143488
Vues:
34
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform