Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coordinating menus with toolbars
Message
 
À
12/06/1999 08:37:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00229002
Message ID:
00229157
Vues:
21
>Evan
>
>Thanks for the response. I had it set that way in the beginning but thought it might be better to coordinate. I did the debugger and hierarchy is "formset1.browsbar1.cmdnext.click" but that still does not work when added to the menu.

The reference from the menu should be

_screen.activeform.parent.browsbar1.cmdnext.click

You have to go down the tree, back up for a second then down again (whew!)

Strongly consider abandoning formsets for forms. If some data must always be together pageframes work really well. Also, if your form has a "movenext" property, anything can easily reference this.

From a menu: _screen.activeform.movenext
From a button on the form: _screen.activeform.movenext
From a toolbar: _screen.activeform.movenext

Makes life really easy. The form can then have the "skip" code or it can pass on the responsibility to something else (like a data object).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform