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
Vadim Zeitlin
b40bf35c76
don't use TPM_RECURSE under NT4, it results in TrackPopupMenu() not showing the menu at all (bug 1663216)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 16:20:30 +00:00
Vadim Zeitlin
47a8a4d5cc
make IsEnabled() return false even if the window parent, and not the window itself, is disabled and added IsThisEnabled() implementing the old IsEnabled() behaviour; also significantly simplify the window state management code in all ports by factoring out the common parts in wxWindowBase
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:01:53 +00:00
Václav Slavík
c9f7896861
first phase of transition to unified Unicode build:
...
1. changed c_str() to return wxCStrData (implicitly convertible to wxChar*)
2. added template type-safe wrappers for vararg functions
3. added wxUniChar class representing single Unicode character
4. changed wxString::operator[] and wxString::iterator to return wxUniChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-17 10:26:10 +00:00
Vadim Zeitlin
609da8bbad
added more message names to wxGetMessageName() (modified patch 1611819)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-16 14:24:01 +00:00
Vadim Zeitlin
58afa32bf4
don't really enable the window when its parent is disabled, just remember to do it later when the parent is enabled back
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-14 11:44:19 +00:00
Vadim Zeitlin
f4322df68b
no changes, just removed TABs/trailing spaces
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-07 22:56:34 +00:00
Julian Smart
b8f434e731
Applied [ 1613294 ] wxGetMouseState/wxIsKeyDown bug
...
(troelsk - allow for left-handed mouse)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-21 15:07:26 +00:00
Robin Dunn
ff7282e135
Allow wxWANTS_CHARS to be effective on native controls too
...
(ported from 2.8 branch)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 21:53:50 +00:00
Vadim Zeitlin
a8b2285edf
only set cursor immediately in SetCursor() if the mouse is currently inside the window or we capture it (fixes the problem introduced in rev 1.675 while still correcting the original bug that change was done to fix)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-12 01:28:14 +00:00
Vadim Zeitlin
7cc4466989
include X11/Xutil.h for wxMotif compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 01:28:10 +00:00
Vadim Zeitlin
ada5f90df8
document HasAlignment(), Left/RightIndent() and Tabs() (patch 1527048)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 00:49:19 +00:00
Vadim Zeitlin
aafb997862
load _TrackMouseEvent dynamically to make it possible to run wx programs on systems with comctl32.dll 4.70 (closes 1215615)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 15:37:55 +00:00
Vadim Zeitlin
3febc967a9
put #if wxUSE_STATBOX around wxStaticBox usage (bug 1568939)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-20 14:33:49 +00:00
Włodzimierz Skiba
967acfb5cd
wxUnivMSW build fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-10 08:05:19 +00:00
Vadim Zeitlin
c719013fd4
return false from IsDoubleBuffered() if the first top level parent is not double buffered
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 16:57:06 +00:00
Vadim Zeitlin
2e992e06a7
added wxWindow::IsDoubleBuffered() and improve wxBufferedDC (patch 1565330)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 16:39:34 +00:00
Jamie Gadd
b728a21269
Re-enable WM_PRINTCLIENT handling code as it is needed to correctly paint nested notebooks (closes bug #1544282 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-29 16:36:51 +00:00
Vadim Zeitlin
e0e6ac8acc
allow specifying the size of wxDCTemp and do specify it for the one used with wxEraseEvents
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 23:51:29 +00:00
Vadim Zeitlin
e5b5af9139
return correct coordinates for child windows from DoGetPosition() in RTL mode (patch 1552664)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 23:42:19 +00:00
Vadim Zeitlin
98ebf9194b
ensure that IsDialogMessage() is not called in the situations when it may hang not only from the immediate parent of the control which has focus but also from its grandparents
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 16:52:20 +00:00
Włodzimierz Skiba
57bd4c6031
Include wx/msw/wrap*.h according to pch support (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 19:01:45 +00:00
Włodzimierz Skiba
08a5813350
WinCE build fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 19:23:15 +00:00
Michael Wetherell
dcfd4ac412
A better compile fix for Wine (which lacks pbt.h).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 18:33:31 +00:00
Michael Wetherell
24aab8e81a
Hacks for wine.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 16:36:47 +00:00
Vadim Zeitlin
978af86426
merge of RTL changes (with many modifications) from SOC2006_RTL branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 13:35:13 +00:00
Włodzimierz Skiba
02761f6cd4
Include wx/module.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-31 19:31:43 +00:00
Paul Cornett
406d283a64
build fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-17 03:02:15 +00:00
Vadim Zeitlin
90c6edd706
TLW default item changes have changed Enter key processing: it was now handled as TAB even for controls such as wxTree/ListCtrl which need it themselves; fix this by checking for VK_RETURN in these classes MSWShouldPreProcessMessage() implementation; also removed specific test for wxTextCtrl in wxWindowMSW::MSWProcessMessage() and simplified its code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-31 22:06:24 +00:00
Václav Slavík
72f8c79220
don't pass window argument to NotifyCaptureLost, it's not needed/used
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-31 12:17:39 +00:00
Václav Slavík
63e819f298
added wxEVT_MOUSE_CAPTURE_LOST event and code for correctly handling capture loss (bug #1153662 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-31 09:27:54 +00:00
Vadim Zeitlin
6c20e8f816
move default button handling code from wxControlContainer to wxTLW (patch 1524441)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 01:31:13 +00:00
Włodzimierz Skiba
c08ee0349d
Warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-24 07:46:05 +00:00
Jamie Gadd
24e35cf87b
Don't handle WM_PRINTCLIENT anymore, manually draw the static box label background instead.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-22 17:20:05 +00:00
Vadim Zeitlin
0d6fdb3cbd
use WM_NCCALCSIZE in DoGetClientSize() if the window has deferred size, even if it's toplevel
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-01 14:19:41 +00:00
Vadim Zeitlin
977f50f3fd
don't ignore dialog code when processing Ctrl-keys; otherwise text controls and listboxes never get Ctrl-PageUp/Dn
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-30 23:27:46 +00:00
Vadim Zeitlin
efe5e221b4
support Ctrl-PageUp/Dn for changing the notebook pages in addition to [Shift-]Ctrl-Tab (this is also a standard key combination)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-30 23:08:00 +00:00
Vadim Zeitlin
e59c2b2da3
added VK_SNAPSHOT <-> WXK_SNAPSHOT mapping
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-22 18:33:26 +00:00
Vadim Zeitlin
7140327898
recognize WXK_NUMPAD_XXX keys in wxCharCodeWXToMSW(): it's better to map them to VK_XXX then to some random junk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-22 18:31:43 +00:00
Vadim Zeitlin
d5c21b02b5
reorganized VK to WXK translation code to use a table instead of huge switch statement in which it was too easy to get lost
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-22 18:27:02 +00:00
Włodzimierz Skiba
25466131ac
Include wx/menuitem.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-19 07:12:50 +00:00
Włodzimierz Skiba
2d4ec36258
wxWinCE build fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-13 11:34:36 +00:00
Vadim Zeitlin
ab3eae34cc
fix wxFindWindowAtPoint for radiobox buttons, it didn't return the radiobox when mouse was clicked inside it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-12 23:55:40 +00:00
Vadim Zeitlin
7bd6bf45ad
update the real window flags when extended flags change and not only the normal ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-11 22:44:53 +00:00
Vadim Zeitlin
a9c11b71e3
don't send wxHelpEvent generated for WM_HELP to all window parents, wxHelpEvent is already propagated upwards implicitely anyhow so in fact we should prevent the default behaviour for it from taking place
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-11 21:08:53 +00:00
Włodzimierz Skiba
fec9cc08e7
Include wx/textctrl.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-06 07:23:19 +00:00
Vadim Zeitlin
d4cd85a064
on some systems PBT_APMRESUMESUSPEND is not sent on resume but PBT_APMRESUMEAUTOMATIC is
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-04 14:27:06 +00:00
Włodzimierz Skiba
2bd6022f1c
Include commctrl.h properly.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-30 07:43:05 +00:00
Włodzimierz Skiba
dbc74bccc9
wxWinCE power build fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-29 23:24:02 +00:00
Michael Wetherell
5de959df83
Compile fixes: gcc seems to need pbt.h including, and PBT_APMRESUMEAUTOMATIC
...
isn't in the headers for most compilers (the other PBT_* macros are there).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 17:36:30 +00:00