Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a forms methods from its called toolbar ??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Calling a forms methods from its called toolbar ??
Divers
Thread ID:
00542858
Message ID:
00542858
Vues:
46
I think I might have the syntax wrong, or just incorrect oop thinking.
But in the custom method called from the init of a form, I issue a command like

thisform.addproperty("ot",createobject("mytoolbar","omyform"))
the toolbar class accepts the parameter,(omyform), and sets the property of the toolbar corretly, giving it a refrence..

I now have a toolbar, which is in the scope of the forms. and I can set it
propertites accordingly.

This works fine, and the the toolbar is made visible. however...I cant seem to figure out, how to call the forms other methods FROM the toolbar class.

Is there a way to refrence up the heiracy.. ?? to know how to refrence the calling forms methods ?
this.parent.parent,just seems to move up the class., but not to the calling form...

Is this doable.? or... have I really missed the boat. and need to refigure a better way to call toolbars. ?


Thank you

Bob Lee
In the beginning, there was a command prompt, and all was well.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform