Sorry, maybe I said this wrong, I should have said "local loop" instead of "modal loop", it doesn't have anything to do with whether a dialog box is modal or not. My problem is that the Notify function (or any other requester function) enters a local loop, waiting for the system until the the window closes. In this time there could be another event which causes the programme to call this function (or any other requester function) and enter another local loop; this second local loop prohibits the first one to exit, even if the first requester closes. So it could happen that the Notify function (or any other requester function) doesn't return directly after the requester closes, so the code I wrote after the call to this function could be executed too late.
1.: Start the example.
2.: Click the "Button1" button.
3.: A notify box opens, it shows: "Button1: notify A"
4.: Leave the notify box open and click the "Button2" button.
5.: Another notify is shown: "Button2: notify A"
6.: Don't click this second notify box, get back to the first one.
7.: Press the "OK" button of this dialog box.
8.: Normally a notify box showing "Button1: notify B" should appear directly thereafter, but it doesn't, the Notify function doesn't return to my program although its dialog box has already been closed.
This problem could be solved if we had some functions which just open the requester, but don't wait until it closes.
Working here on WinXP SP2 without any problems.
Sure? Try this:1.: Start the example.
2.: Click the "Button1" button.
3.: A notify box opens, it shows: "Button1: notify A"
4.: Leave the notify box open and click the "Button2" button.
5.: Another notify is shown: "Button2: notify A"
6.: Don't click this second notify box, get back to the first one.
7.: Press the "OK" button of this dialog box.
8.: Normally a notify box showing "Button1: notify B" should appear directly thereafter, but it doesn't, the Notify function doesn't return to my program although its dialog box has already been closed.
This problem could be solved if we had some functions which just open the requester, but don't wait until it closes.