Paarvai Naai wxWidgets Users
2009-04-25 01:45:52 UTC
Hi all,
I would like to switch the mouse cursor to an hourglass and freeze my
GUI from accepting events for about 1-2 seconds. I have found that
using wxEnableTopLevelWindows(FALSE) in MSW works nicely for this.
Keyboard and mouse events are thrown away and the window is otherwise
as-is. On GTK, this function grays all of the widgets as well, which
is redundant since the mouse cursor is already an hourglass. I would
prefer that all of the widgets not be grayed but just unclickable
(somewhat like when a modal dialog is displayed).
What is the quickest, cleanest, cross-platform way to do this with WX?
Please make sure to include wx-***@lists.wxwidgets.org in any reply
as I am not personally subscribed to the wx-dev list.
Thanks in advance!
Paarvai
I would like to switch the mouse cursor to an hourglass and freeze my
GUI from accepting events for about 1-2 seconds. I have found that
using wxEnableTopLevelWindows(FALSE) in MSW works nicely for this.
Keyboard and mouse events are thrown away and the window is otherwise
as-is. On GTK, this function grays all of the widgets as well, which
is redundant since the mouse cursor is already an hourglass. I would
prefer that all of the widgets not be grayed but just unclickable
(somewhat like when a modal dialog is displayed).
What is the quickest, cleanest, cross-platform way to do this with WX?
Please make sure to include wx-***@lists.wxwidgets.org in any reply
as I am not personally subscribed to the wx-dev list.
Thanks in advance!
Paarvai