Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coordinating menus with toolbars
Message
 
 
To
12/06/1999 08:37:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00229002
Message ID:
00229157
Views:
22
>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).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform