Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coordinated Menus and Toolbars
Message
De
21/09/2001 18:03:08
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/09/2001 15:55:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00559484
Message ID:
00559551
Vues:
10
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform