Re: Similar a message_box() function

new topic     » goto parent     » topic index » view thread      » older message » newer message
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() ?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu