Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another grid question...
Message
From
26/06/2003 15:56:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/06/2003 13:42:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00803964
Message ID:
00804400
Views:
35
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform