Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddObject, Grid and Click
Message
De
11/04/2004 20:55:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00893941
Message ID:
00893943
Vues:
20
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform