How to know have we opened child dialogs
Vadim Zeitlin
vadim at wxwidgets.org
Sun Apr 6 05:29:47 PDT 2008
On Sun, 06 Apr 2008 10:59:24 +0300 Tyushkov Nikolay <wx at softvoile.com> wrote:
TN> Is there a way to determine has my window opened child dialogs?
Not easily... The only thing which comes to mind is to scan
wxTopLevelWindows list and check if there are any windows in it with your
top frame as parent.
Alternative idea would be to store the pointer to wxEventLoop::GetActive()
initially and compare its return value with the stored value later. At
least under MSW it will be different while a modal dialog is shown
(although probably not if it's a native dialog like e.g. an open file one).
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list