Welcome! Log In Create A New Profile

Advanced

How to call a method on an MDI window?

Posted by JB 
JB
How to call a method on an MDI window?
February 05, 2009 10:17AM
I need to call a method in an MDI window so that it re-calculates some data. I can't figure out how I can call this from another form.

Help!

Thanks
Arie
Re: How to call a method on an MDI window?
February 05, 2009 10:27AM
Jonathan,
I do this by sending a message to ALL open mdi-windows (see MDIEnumChild()).
In each Mdi-window, which needs this notification, the message is trapped by the use of Event("aProc","*.",MY_USER_MESSAGE).
In other Mdi-window the message is just lost.

Arie
JB
Re: How to call a method on an MDI window?
February 05, 2009 11:17AM
Thanks Arie... All working.

I also used Handle() to pass the MDI windows handle into the other window so that it could send the message directly.

Jonathan
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: