Jon Swanson wrote:I thought I was being clever and set my application up as follows:
where MyMenbar is a separate class in a separate file. Well, it worked nice when I was just playing around with figuring out how to get all the pulldowns and other menubar bits I wanted to implement working.
But now I actually need to have the menu options do something. They'll need to interact with the other pieces of myGUI and I am not sure how the menubar instance can call non-static methods from its parent.
I tried getting something like this, but I couldn't get it to work. I'm not sure what the type is of the thing I am passing to MyMenubar.