Re: Similar a message_box() function

new topic     » goto parent     » topic index » view thread      » older message » newer message
sergelli said...

But an error is occurring. If before that all messages are displayed and I close the program testMBox.exw, even after the program is closed the remaining messages will be displayed.

Please, any ideas?

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu