Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another grid question...
Message
De
26/06/2003 15:56:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/06/2003 13:42:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00803964
Message ID:
00804400
Vues:
37
>That worked! I set it up so that each textbox in the grid has code in the KeyPress() event that looks to see if the key passed to the event was equal to EnterKey and took action as necessary.
>
>Thanks for the lead, Hilmar.
>
>Jim White

Unfortunately, it is difficult to automate objects in a grid through classes. The way the Visual Extend framework handles this, for instance, is to call a method in each TextBox.KeyPress() (or other desired event). The code in the Column Headers and TextBoxes is supposed to be maintained through special builders.

Of course, even if you have to place the code to call a method into each TextBox, you still have the advantage of having one centralized place (the corresponding method) where you maintain your code.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform