Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids - Custom Control - VFP 5.0a
Message
 
To
14/10/1997 12:12:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00054365
Message ID:
00054566
Views:
32
>>>Hello all. I am trying to drop a custom container class into a grid column and have it replace the standard textbox. I am able to get this to work just fine but when you try to use the arrow keys to navigate from cell to cell the up and down keys do not work correctly. The up key moves highlight to the left and right key moves highlight to the right. What am I missing? Is it possible to get full navigation with a custom container control? Any and all responses is appreciated.
>>>
>>>ps. This is with sparse set to .f.
>>Mike,
>>
>>The arrow keys are being handled by the container and not the grid. You need to handle these keys in the container class to change their default behavior. If you can tell us what is in the container then we may be able to give you specific advice on how to do this.
>
>Thanks for the reply. Basically I have 2 bmps and a label. What I want to do is create a scheduler and the default textboxes do not give the required features needed. This project is still in very early stage and I am just tryin to see if it is possible or not. I want to have the custom container display different bmps and text string based on a value in cursor or even from an array if that is possible. But I always thought that a grid had to be bound to a table or cursor. If this is not true then please also give me some ideas on how this is done. Again thanks for the reply.

Mike, I have never tried filling a grid from an array, but it's certainly easy enough to fill a CURSOR from the array and use the cursor as the data source. In fact, depending on the source of the array, you may even be able to skip a step and go directly to a cursor.

Also, remember you can use calculated fields in a grid very easily. This could allow you to use different BMPs for different values.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform