disable toolbar buttons


I have Mdi form and child form , toolbar is on the mdi, how to disable toolbar buttons on the mdi form from the chile form and how to call a function on the mdi form from the child form

Not a lot of information there to go on. But here goes...

I presume that you are instantiating an instance of the child form from the parent MDI form? If so, you could pass a pointer through to the child from the parent, so that you can then call public functions (or protected if the child is-a kind-of parent type ;-) ). Then in the parent class declare the functions that do what you want them to do, which can then be called from within the child form.

Does that make any sense to you?

Topic archived. No new replies allowed.