Vadim Zeitlin
14eb37a05e
call ProcessPendingEvents() from wxAppConsoleBase::ProcessIdle() too, not only from wxAppBase::ProcessIdle(); do not call it from wxConsoleEventLoop::Dispatch() as this results in unwanted reentrancies in the socket code when using it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-02 22:18:10 +00:00
Vadim Zeitlin
ac16633fdc
don't assert if MsgWaitForMultipleObjects() returns WAIT_OBJECT_0 but there are no messages in the queue -- this does happen
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 12:09:06 +00:00
Vadim Zeitlin
9af42efda6
added wxEventLoop::DispatchTimeout()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 22:28:34 +00:00
Vadim Zeitlin
2804f77d88
more socket cleanup to allow using wxSocket from both wxBase and wxCore (replaces patch 1756260)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-19 16:45:08 +00:00
Paul Cornett
204abcd474
remove unneccessary header dependencies on wx/thread.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-03 02:55:14 +00:00
Vadim Zeitlin
985acf8734
reverted wxSocket changes of rev 48723 as they broke linking under non-Unix systems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-17 00:22:05 +00:00
Vadim Zeitlin
22b6de6a70
more fixes for using wxSocket in console applications (patch 1756260)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-16 14:29:42 +00:00
Vadim Zeitlin
61478ea03f
added wxUSE_CONSOLE_EVENTLOOP around wxConsoleEventLoop
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-15 19:33:16 +00:00
Vadim Zeitlin
81df6af392
undid unnecessary renaming of src/msw/evtloop.cpp to evtloopmsw.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-18 14:58:11 +00:00
Vadim Zeitlin
f638866768
call MSWProcessMessage() for the window itself, although a comment said that this was done it, in fact, wasn't (since rev 1.11 when this was changed, apparently accidentally)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-30 22:59:01 +00:00
Vadim Zeitlin
c009bf3e9f
relay mouse move events to the tooltips even when the window itself doesn't have a tooltip -- but its subwindow does
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-04 16:07:15 +00:00
Vadim Zeitlin
c8026dea6c
improved wxMac event loop implementation and refactored the code to share it with wxMSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-12 23:06:26 +00:00
Vadim Zeitlin
25e2f480a7
define wxEventLoopBase::ms_activeLoop in appcmn.cpp instead of doing it in all platform-dependent evtloop.cpp files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-12 18:57:28 +00:00
Vadim Zeitlin
77fb1a02aa
share wxEventLoop::IsRunning() implementation between all ports; moved wxEventLoopActivator used by it in wx/evtloop.h instead of duplicating it in 3 different .cpp files (and not using it at all in 3 other ones)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-12 16:56:48 +00:00
David Surovell
18f5234f0c
removed unused local variable; converted tabs to spaces
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-19 03:51:34 +00:00
Kevin Ollivier
89c8318014
Allow wx parents a chance to handle events fired by non-wx children. (i.e. wxActiveX controls)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-19 01:39:54 +00:00
Vadim Zeitlin
259c43f679
more extra semicolons removed (patch 1303724)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 11:16:57 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Włodzimierz Skiba
b4626104e5
wxMSWUniv build fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-18 13:36:31 +00:00
Vadim Zeitlin
a7b7500c4f
added SetCriticalWindow() and AllowProcessing(): this allows to freeze all events except those for the specified window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-15 22:57:49 +00:00
Václav Slavík
96d38c7e0d
rolled back exceptions handling patch, it relied on incorrect assumption about vtables
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-21 09:56:18 +00:00
Václav Slavík
924b84ab94
changed exceptions handling to work under wxGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-20 08:20:50 +00:00
Julian Smart
3103e8a97e
Typo correction patch [ 1208110 ] Lots of typo corrections
...
Olly Betts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Vadim Zeitlin
9af08eb826
use a linked list instead of array for saved messages to fix problems when Dispatch() is reentered (part of patch 1080770)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-12 11:47:57 +00:00
Julian Smart
22cfea03b8
Added IsTopLevel() check to last message loop in PreProcessMessage. This
...
stops e.g. ESC being processed by a parent modal dialog if not processed
by the child -> assert and lockup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-17 13:42:14 +00:00
Vadim Zeitlin
3754265e32
switched to wxEventLoopBase/wxEventLoop implementation (instead of m_impl based one) for wxMSW; minimal changes for the other ports
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-30 22:54:31 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
d284c07534
call wxApp::OnExceptionInMainLoop() when an exception occurs (refactored the change 1.16->1.17)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-30 20:52:19 +00:00
Dimitri Schoolwerth
51d78461fa
Applied remainder of patch #876969 : "Fixes to Borland warnings".
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-28 11:17:02 +00:00
Mattia Barbon
a6c7a0f826
MinGW compilation fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-17 22:21:48 +00:00
Julian Smart
676d655065
Some WinCE fixes from ABX
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-23 09:18:16 +00:00
Julian Smart
5df41a232d
Fixed Unicode compilo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-13 10:31:01 +00:00
Julian Smart
cea62f9c12
Applied patch [ 819171 ] wxEventLoop::Run silently eats all exceptions...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 07:55:06 +00:00
Vadim Zeitlin
f7550d7322
fix for showing a modal dialog from OnIdle() when another modal dialog is being destroyed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-09 08:52:40 +00:00
Vadim Zeitlin
2a8f35c325
fixed (recently reintroduced) activation bug when the modal dialog was dismissed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-26 12:38:49 +00:00
Vadim Zeitlin
3ad38858fd
compilation fix for BCC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 12:45:11 +00:00
Vadim Zeitlin
462988d5f9
don't use wx/scopeguard.h for OpenWatcom compatibility (grr...)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 15:12:39 +00:00
Vadim Zeitlin
4300caa7a6
added OnExit(); made event loop exception safe; added wxModalEvtLoop
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-17 23:32:32 +00:00
Vadim Zeitlin
ac8d0c118b
added wxVALIDATOR_PARAM and use it to avoid warnings about unused validators when wxUSE_VALIDATORS==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-15 19:54:51 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Julian Smart
e39af974ef
- Moved wxApp::SendIdleEvents and wxApp::ProcessIdle into common code.
...
- wxWindow::OnInternalIdle is now used in all ports, and ensures that
user OnIdle events do not interfere with crucial internal processing.
- wxWindow::UpdateWindowUI is now a documented function that
sends wxUpdateUIEvents, and can be overridden. It has a helper function
DoUpdateWindowUI for taking appropriate wxUpdateUIEvent action.
- Added functions to wxUpdateUIEvent: Set/GetMode, Set/GetUpdateInterval,
CanUpdate, to assist with optimising update event frequency.
- Added functions to wxIdleEvent: Set/GetMode, CanSend, to
determine whether a window should receive idle events.
- Added wxWS_EX_PROCESS_IDLE, wxWS_EX_PROCESS_UI_UPDATES window
styles for use with conservative idle and update event modes.
- wxMSW and wxGTK now send menu update events only when a menu is
about to be used.
- Added WM_INITMENU processing instead of WM_ENTERMENULOOP, or
accelerators don't always get called since menu items may still
be disabled.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 10:15:21 +00:00
Julian Smart
0b30bb0bda
Added wxFrameBase::OnMenuOpen, and wxUSE_IDLEMENUUPDATES in platform.h
...
Experimental wxUpdateUIEvent::SetUpdateInterval() function to limit
UI update frequency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-07 16:21:44 +00:00
Julian Smart
6c9a19aaba
Removed erroneous copyright names and corrected licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:23:28 +00:00
Václav Slavík
b9f246f7d9
added wxEventLoop::GetActive()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-12 22:10:20 +00:00
Vadim Zeitlin
6c0e8b4ea5
moved some headers inside #ifndef WX_PRECOMP
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-11 12:35:33 +00:00
Václav Slavík
0cd7d9b235
mingw compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-11 12:28:39 +00:00
Julian Smart
8cb172b4f1
Various wxUniversal/wxMicroWindows fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-02 13:22:19 +00:00
Julian Smart
3808e19142
Added some more files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-29 17:21:17 +00:00