how can i disable the "x" button of the dialog or mainwindow??
the root of my problem is when my app is still processing(loop) and the user click the "x" button it closes but it doesnt terminate the whole program the loop is still running..
thanks
how can i disable the "x" button of the dialog or mainwindow??
the root of my problem is when my app is still processing(loop) and the user click the "x" button it closes but it doesnt terminate the whole program the loop is still running..
thanks
There is no cross-platform way to do that. However, you can do it with WinAPI, see this post.
Instead of disabling the close button you could just ignore close event to prevent the dialog from closing.the root of my problem is when my app is still processing(loop) and the user click the "x" button it closes but it doesnt terminate the whole program the loop is still running..
J-P Nurmi
Bookmarks