Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command buttons on a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00267699
Message ID:
00267810
Vues:
20
PMFJI, Mikes' code will loop through each control in the form.control property (this is an array, populated by VFP at runtime, of object refrences for each object on a form). NOTE: this only contains the top-level objects ie. it contains a pageframe but not the pageframes children. See MESSAGE#257688 for an example of how to recursivley loop through all objects in a form.

BTW- For what you are doing I don't think this is neccessary. You don't need an array of all the buttons on a form. Each button should handle the resizing itself via it's mousemove event. The form mousemove event should handle clearing any mods.

hth

>>Hi TIm,
>>
>>>I mean can you give me an example. You said "for each loButton " how would I word this or even know what loButton is? I know what my controls are.....
>>
>>That is the syntax, assumming you use VFP 6.
>Mike, I guess I am miscommunicating. What I need is to get all the controls on the given form into an array, determine which are command buttons, then be able to minipulate the 'size' property for the one that has the mouseover it. How do I determine how many controls are even on the form?
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform