Add lambda-friendly wxDialog::ShowWindowModalThenDo().
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 6 Sep 2013 17:09:20 +0000 (17:09 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 6 Sep 2013 17:09:20 +0000 (17:09 +0000)
commitc5d4360fc99a0b9bd512e9dc19087c96dc669345
tree4baaa4b27bfc51dd9a448f8f0cc307397f6b0feb
parentc80d4c1e207b0011db61cb2ce1cc8babe8e54582
Add lambda-friendly wxDialog::ShowWindowModalThenDo().

Add a convenience ShowWindowModalThenDo() variant of ShowWindowModal()
that takes a functor argument and calls it when the dialog is closed.

This is, of course, particularly useful when the argument is a C++11
lambda, especially when having more than one window-modal dialog invoked
from the same window, which can get messy quickly with all the
wxEVT_WINDOW_MODAL_DIALOG_CLOSED handlers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/dialog.h
interface/wx/dialog.h