Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's a commandgroup
Message
De
03/01/2008 09:24:55
 
 
À
03/01/2008 08:39:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01279201
Message ID:
01279212
Vues:
9
>In pursuing a thread last week about being able to hide pages in a pageframe, I encountered, for the first time, a CommandGroup.
>
>What's the common usage for a CommandGroup, anyway? At first glance, it seems like a container with commandbuttons inside, with the following differences:
>1) It has a value ( 1 to N)
>2) And a controlsource
>3) The "currently selected" commandbutton has its background color sort of dithered out so that you can tell its been selected.
>
>Are there any other differences of note?

A commandgroup is one of those things that seemed like a good idea at the time. I think it's in VFP for two reasons:

1) to aid in conversion from FP2.x. Every button in an FP2.x screen turns into a commandgroup in a form.

2) because VB had them. And that's because VB didn't have inheritance.

Bottom line. I've never found a reason to use a commandgroup rather than simply putting buttons in a container.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform