Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programming Events within a Grid
Message
From
27/04/1998 01:41:07
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00094583
Message ID:
00095027
Views:
25
Hi David,

Thanks for your suggestion. Forgive me, I'm a novice at this...
I have a table with 216 fields, 210 of which I would like to display in cells partially (substr function). Next I would like to attach a rightclick event showing d=greater detail in an information window.
Due to the number of fields involved, I used a for...next loop in the init event of the form to set the ControlSource of each column - and this worked.
I would like to go on to set the rightclick event (and others) except I don't know how to do this.
I am having trouble finding concrete examples of how to set events for an object using code. I guess I'm trying to get the most convenient mix of visual design and code and am having little joy using trial and error methodology!

As a worst case scenario I could manually set all 210 columns manually using the form designer, but there has got to be a better way!

Rgds



>Ashley,
>
>You'd want to replace the textboxes in the grid with a textbox subclass that knows what to do in the RightClick() event. You can do this at design time or runtime.
>
>You can partition the grid I posted some code a week or so ago that prevents the left portion from scrolling horizontally.
>
>If you tried to place two grids side by side it would be tricky but doable to propogate the scroll from one grid to the other.
>
>>I would like the RightClick event to apply to the individual cells in the grid so that Right clicking would display detailed information on the cell. Also would like to go on from there to associate other events with the cells.
>>I am using a loop (wherever it finally ends up) due to the large number of columns.
>>Also, is there a way to freeze column one in the grid like in the original browse command?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform