modal dialogs issue under wxGTK
Miklos Csaba
micsa at easynet.ro
Sun Jan 7 01:14:23 PST 2007
I'm currently struggling with creating an aplication with several
windows. There are modal dialogs shown in each of these windows.
The problem is: under wxGTK calling the wxDialog::ShowModal blocks the
user input for ALL dialogs/windows, except the active modal dialog.
Taking a look into the wxGTK source, the ShowModal function calls the
gtk_grab_add/gtk_grab_remove functions, which (according to gtk
documentation) : "Makes widget the current grabbed widget. This means
that interaction with other widgets in the same application is blocked
and mouse as well as keyboard events are delivered to this widget."
(versions 2.6 and 2.8 too).
So, creating a dialog which is not application-wide modal is imposibble.
Other platforms, like MSW doesn't have this issue.
I'm asking: is it a good idea to be able to create only application-wide
modal dialogs and not window-wide modal ones?
thanks, in advance
csaba miklos
More information about the wx-dev
mailing list