Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coordinated Menus and Toolbars
Message
From
21/09/2001 18:03:08
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/09/2001 15:55:32
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00559484
Message ID:
00559551
Views:
11
>When I add my own toolbar class to a form, a formset is created.If I want to refer to a Click event in the formset, I write :
>Formsetname.Toolbarname.Cmd1.Click
>
>When I create a coordinated Menu (coordinated menu&toolbar) exactly as it says in chapter 11 of the programmers guide, and try to get the menu work, ( I put a command Formsetname.Toolbarname.Cmd1.Click ), I get a message that Object Formsetname not found...
>
>I tried with _SCREEN.Activeform.Cmd1.Click, but the Cmd1 button is contained in the toolbar, which is contained in the formset, at the same level of the form, and Activeform refers to the Form, not the formset.
>Please help!!!

In that case that would have to be
_screen.activeform.parent.toolbarname.cmd1.click
Since you need to refer to the toolbar from the form, you have to address it through their common parent.

Though, most of the people here dislike formsets - you may be better off arranging the buttons into a container and dropping that on your form.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform