Vadim Zeitlin
ad02525dad
don't check whether the window is shown and enabled in AcceptsFocus() itself
...
as it makes overriding it in derived classes problematic; provide a separate
non virtual CanAcceptFocus() method checking whether the window accepts focus
and if it can accept it now and use it instead of AcceptsFocus(); documented
AcceptsFocus() and AcceptsFocusFromKeyboard()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 22:36:24 +00:00
Václav Slavík
4d163bf87d
send wxChildFocusEvent
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-21 16:09:21 +00:00
Michael Wetherell
06414d99a7
Implement wxGetMouseState
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-15 18:51:35 +00:00
Michael Wetherell
3fa2676fc3
Take account of the numlock when mapping mgl virtual keycodes to wx ones.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 19:23:44 +00:00
Włodzimierz Skiba
3b3dc8019a
Include wx/menu.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 07:13:20 +00:00
Włodzimierz Skiba
11dbb4bfab
Include wx/dcscreen.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-09 13:55:29 +00:00
Włodzimierz Skiba
e4db172a3b
Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 08:21:31 +00:00
Włodzimierz Skiba
88a7a4e10e
Include wx/intl.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-25 14:38:19 +00:00
Włodzimierz Skiba
faa94f3ec8
Final and global PRIOR/NEXT change: keep consistency using only PAGE versions, deprecate old ids, remove rest of build problems with case statemets.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-27 12:25:17 +00:00
Włodzimierz Skiba
9b5f189564
Include order is wxprec.h=>defs.h=>platform.h=>setup.h so remove explicit setup.h inclusion not touched by chckconf.h.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-26 16:02:02 +00:00
Michael Wetherell
318ac890b6
Fix control and shift key event flags
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-04 14:17:53 +00:00
Włodzimierz Skiba
127eab18f8
wxMGL revitalised with OpenWatcom.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-31 17:14:55 +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
Michael Wetherell
1cdab5d13a
Refresh a window's non-client area when it is resized.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-06 01:41:18 +00:00
Michael Wetherell
90eb13e62e
Compilation fixes for wxMGL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-22 13:25:35 +00:00
Václav Slavík
0fe0275981
changes to make wxWindow::FindFocus work as expected with composite controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 14:34:28 +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
Václav Slavík
1c53456fc9
wxMGL fixes (patch #884758 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-05 23:13:30 +00:00
Vadim Zeitlin
727953356d
removed calls to wxWindowBase::InitBase(), it is called from the ctor anyhow (and so was called twice)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-30 23:08:39 +00:00
Vadim Zeitlin
e441e1f4e8
made wxNO_FULL_REPAINT_ON_RESIZE default, added wxFULL_REPAINT_ON_RESIZE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 00:26:40 +00:00
Vadim Zeitlin
8e35ab96f6
call RemoveChild() in ~wxWindowBase instead of doing it in each ~wxWindow for each port
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-15 11:45:08 +00:00
Václav Slavík
a3bf7524f3
removed WXWIN_COMPATIBILITY and WXWIN_COMPATIBILITY_2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-17 12:50:53 +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
e3a1e3e0e5
Fixed copyright and licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:24:30 +00:00
Robin Dunn
7de595519a
Send the wxWindowDestroyEvent for all ports
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-19 02:59:36 +00:00
Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Václav Slavík
197b162641
compilation fixc
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-08 22:12:09 +00:00
Václav Slavík
a1f7eb20e6
use wxLogFatalError, not wxFatalError
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-19 19:15:13 +00:00
Vadim Zeitlin
63fd5f0b27
added missing semicolons after asserts (patch 567853)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-12 15:26:35 +00:00
Václav Slavík
66858adfc4
better handling situation when active frame is destroyed or hidden
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-17 21:44:31 +00:00
Václav Slavík
8014db4142
1. handle Alt-F4 in wxUniv, not wxMGL
...
2. safeguards to never warp pointer to out-of-screen location (MGL would crash)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-12 23:16:26 +00:00
Václav Slavík
ea98f686a6
1. changed doubleclick events sequence to 'down,up,double,up' (turned out to be MGL's native one)
...
2. wxWindow::GetPosition() returns value relative to parent's client area origin now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-24 00:06:33 +00:00
Václav Slavík
60df0f9685
synthetize 'button up' event before doubleclick, too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-17 14:53:31 +00:00
Václav Slavík
06534aa178
oops, commiting too fast, forgot to fix a small typo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-16 01:44:38 +00:00
Václav Slavík
2d1efe3fec
added Alt-PrintScreen handling (SciTech won't be happy till we do everything Windows do...)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-15 19:41:16 +00:00
Václav Slavík
8f5e92dbe5
corrected double click events: wxMGL will now synthetize
...
second single click, so that events sequence is single-single-double as wxWindows
expects rather than single-double as MGL generates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-15 00:55:27 +00:00
Václav Slavík
eea932674b
fill wxFocusEvent::m_win properly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-14 20:30:49 +00:00
Václav Slavík
d53fc7c96d
1. added wxUpdateUIEvent handling to wxMGL
...
2. added Alt-F4 and PrintScreen handling
3. removed accelerators handling (done by wxUniv)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-14 00:37:12 +00:00
Václav Slavík
e41dcea547
safeguards against crashes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-12 10:37:55 +00:00
Václav Slavík
6feddea302
honour min/max size in wxMGL's wxWindow::DoSetSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-10 19:08:07 +00:00
Václav Slavík
821860051a
1. make paint events debugging runtime switch instead of compile time
...
2. fixed incorrect rendering of wxListCtrl (newly created controls didn't account
for parent's client origin)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-09 23:28:05 +00:00
Václav Slavík
a679e1298b
A couple of fixes to wxMGL's wxWindow:
...
1. fixed caret interference when painting the window
2. now calls SetFocus when you click on a window that doesn't have focus
3. hopefully correct translations of event for OnKeyDown vs. OnKey
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-27 23:40:12 +00:00
Václav Slavík
869dabf8c3
move caret notification after sending the focus event
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-27 00:46:32 +00:00
Václav Slavík
84c88a17c0
added TAB handling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-21 19:03:23 +00:00
Vadim Zeitlin
4116c22156
Capture/ReleaseMouse() prefixed with Do for the other ports (OS/2, MGL, Motif, Mac)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-19 19:38:46 +00:00
Václav Slavík
7b9f73d205
end with fatal error if cannot start MGL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-17 23:42:37 +00:00
Václav Slavík
a3e76614ad
extended display mode handling to accept WXMODE env. variable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-30 00:05:18 +00:00