Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buttons class
Message
De
27/02/2010 08:49:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/02/2010 02:38:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01451392
Message ID:
01451416
Vues:
103
>Anyone have a class for buttons like add, edit, save, cancel, previous, next, exit?
>
>TIA.

If it is the commands you need, those should be defined at the form level. The form should have a command called .Save() or .OnSave() or something similar; the button click just invokes the form method. That way, a programmer can (for example) skip to the next record by invoking the form method, without knowing what you called the button. You might even decide not to use buttons on every form (very repetitive, ain't it?), relying instead on a toolbar, or menu commands, or both.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform