Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a forms methods from its called toolbar ??
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00542858
Message ID:
00542867
Views:
12
Does your toolbar accept form reference as a parameter?

Seems like yes, in this case: this.oMyForm.MyMethod() should work, I believe...


>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
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform