Re: Similar a message_box() function
- Posted by sergelli Feb 25, 2014
- 1463 views
DerekParnell said...
Firstly, the close button on the program is not acted upon until the procedure "ClickOkButt" has finished. If you want to detect that event earlier, you need to run "doEvents(0)" after each call to "mbx()".
Secondly, in the message box library, it would be easier if you opened the message window as a MODAL window. That way you won't have to do all the tests for "hasAction" and you won't need the inner loop in the "mbx()" routine. A modal window causes the program to ignore events from all other windows in the program.
This should get you going again.
Thanks Derek
About "modal" are you refering to message_box() ?