Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject, Grid and Click
Message
From
11/04/2004 20:55:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00893941
Message ID:
00893943
Views:
17
You can create a class based on grid, and add any methods you like to that. Then, AddObject that grid to your form.

Alternately, you can add columns to the grid, or TextBoxes to your columns, based on classes. I mention this, because much of the user's interaction with the grid actually happens through the contained objects.

>Hi,
>I have a form, and on that form I programmatically add a grid.
>
>ThisForm.AddObject("Grid1","Grid")
>
>How can I then detect if there is a mouse click on the grid? Is it part of a procedure
>statement? But where does it go? In a procedure file??
>
>Procedure thisForm.Grid1.Click()
>endProc
>
>Thanks
>Steve
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
Next
Reply
Map
View

Click here to load this message in the networking platform