Commit Graph

997 Commits

Author SHA1 Message Date
Vadim Zeitlin
4552892fc2 don't break of the loop resetting last focus pointer in dtor as under some (unclear) cisrcumstances more than one TLW can have a pointer to us, see bug 1179024
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-13 16:26:23 +00:00
Julian Smart
f23255165e GetCursorPos returns an error on WinCE, so use GetMessagePos instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-13 15:32:41 +00:00
Włodzimierz Skiba
43bfb7986a wxUniv build fix (typo correction).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-12 15:34:08 +00:00
Vadim Zeitlin
1a784dfc80 after latest changes background of radio buttons _not_ inside the notebook wasn't redrawn at all, fixed this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-11 14:41:36 +00:00
Włodzimierz Skiba
3d74a76013 wxUniv build fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-11 12:08:16 +00:00
Vadim Zeitlin
b6afa1a38a silently ignore NULL pointers in MSWOnMeasureItem(): apparently this can happen with MDI frames under XP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 22:13:33 +00:00
Vadim Zeitlin
2bae4332e7 extended wxWindow::MSWGetBgBrush() and wxControl::MSWControlColor() to work for arbitrary HWNDs and not just wxWindows: this allows us to draw proper background for slider labels and other subcontrols
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 21:55:12 +00:00
Vadim Zeitlin
c3732409ac simplifications and corrections to background drawing:
1. removed ApplyParentThemeBackground() not used any longer
2. removed ProvidesBackground() which is synonymous with
   !HasTransparentBackground()
3. removed a whole bunch of unused MSWXXX() methods
4. moved MSWControlColor() from wxWindow up to wxControl

results:

1. the gradient is still shown properly for static/radio boxes in notebooks
2. correct background colour is used for the static boxes
3. code is shorter and better commented


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 15:23:08 +00:00
Julian Smart
16d652a54c Use InvalidateRect for Smartphone.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-31 08:33:10 +00:00
Włodzimierz Skiba
480e9098a2 Smartphone fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-31 08:09:28 +00:00
Vadim Zeitlin
d181e05329 changed wxWindow::Refresh() to refresh the window children as well (as wxGTK already did); documented this as correct behaviour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-26 16:32:48 +00:00
Vadim Zeitlin
dc993cbfc6 do nothing in Freeze/Thaw() if the window is hidden, otherwise the window is not redrawn correctly after being eventually shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-25 23:49:48 +00:00
Włodzimierz Skiba
d53e5a41d3 Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-25 17:40:31 +00:00
Vadim Zeitlin
bd87d59d57 reversed disabling of deferred resizing in the last check in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-25 11:45:24 +00:00
Julian Smart
85d8df29aa Switch deferred sizing off by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-24 09:28:51 +00:00
Vadim Zeitlin
44353523d8 document (and check for it with assert) that wxGetKeyState(WXK_[LMR]BUTTON) doesn't work (patch 1156279)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 23:05:16 +00:00
Julian Smart
afafd942a1 Added WXK_SPECIAL... keycodes for special hardware buttons
Made (Un)RegisterHotKey WinCE-aware.
Added wxEVT_HIBERNATE event.
Now fakes wxEVT_ACTIVATE_APP to be symmetrical with wxEVT_HIBERNATE.
Added wxTE_CAPITALIZE for CAPEDIT controls.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-18 14:26:57 +00:00
Włodzimierz Skiba
01d2bf4def Correct sending of wxW event from wxChoice on MS Smartphone.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-13 15:32:30 +00:00
Vadim Zeitlin
c7e1d00462 slightly clarified msw.window.no-clip-children test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-09 00:02:55 +00:00
Vadim Zeitlin
04bea5f8fd removed unused wxDirToWinStyle() (part of patch 1159289)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-08 20:11:06 +00:00
Vadim Zeitlin
040e5f77e6 harmless warning fixes for WinCE (mostly unused parameters)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-07 19:50:06 +00:00
Włodzimierz Skiba
e5ecf1fc24 In MSWUniv wxWindow and wxWindowMSW are different classes so we can't access some of protected members (catched only by Borland). Therefore some of the flags related to background needs reading API.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-02 10:57:08 +00:00
Robin Dunn
03cef64339 Oops, checked in wrong file by mistake. Reverted last change.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 19:34:13 +00:00
Robin Dunn
a0c70b7642 Don't build the old versions of OGL or iewin by default anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 19:19:25 +00:00
Stefan Csomor
fb7e28db37 XTI fix for VC 7.1 (VC 8.0 didn't complain)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-21 16:33:22 +00:00
Vadim Zeitlin
f420a70918 wxUniv compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-20 15:09:20 +00:00
Vadim Zeitlin
4e5c6c33c5 cleanup of TrackMouseEvent() code (use a single #ifdef instead of 3 different ones to test for the same thing)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-20 15:07:19 +00:00
Julian Smart
71f2ad997a Don't repaint window if hidden
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-20 10:39:50 +00:00
Vadim Zeitlin
298ca00cdc added wxNavigationEvent::FromTab flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 21:59:21 +00:00
Vadim Zeitlin
07c1932792 added MSWPrintChild() for drawing child background (replaces patch 1108389)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 20:49:50 +00:00
Vadim Zeitlin
4bd6ae0fad extracted check for wxListCtrl in WM_PRINT handler to wxListCtrl itself, base class shouldn't have to worry about its derived classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 19:24:46 +00:00
Vadim Zeitlin
f52c3131bf VK_MENU is WXK_ALT, notWXK_MENU (patch 1119601)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 15:08:36 +00:00
Włodzimierz Skiba
c47addef10 wxPoint/Size/Rect() causes the same code with (0,0) initialization and is incomparably more readable and clear.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-16 20:34:34 +00:00
Julian Smart
c0aadc6f40 Absolutely no idea what DisableAutomaticSETranslator is but
WinCE doesn't like it


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-15 22:54:38 +00:00
Włodzimierz Skiba
8b5d5223d1 Various cleanings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-11 10:42:05 +00:00
Włodzimierz Skiba
c0ae5ebe05 wxWindow::GetClientAreaOrigin duplicated wxWindowBase method.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-10 10:27:12 +00:00
Julian Smart
c6430ed0ae Can now set msw.window.no-clip-children to 1 to eliminate weird
refresh behaviour (delays between a window being erased and repainted,
giving a ghostly gradual-redraw effect). May be a temporary 'fix'
until properly fixed before 2.6.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-06 20:03:35 +00:00
Vadim Zeitlin
5e67eb9737 - use CreateWindowEx(), please explain why CreateWindow() is needed if it is
- use window name if it has no title (patch 1106877)
- corrected error message when window creation fails


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-31 23:45:52 +00:00
Vadim Zeitlin
3f48c8e275 moved Begin/EndDeferWindowPos() calls to WM_SIZE handler itself, don't use WM_WINDOWPOSCHANGING/ED as they sometimes don't come in pairs (slightly modified patch 1107147)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-30 15:39:05 +00:00
Robin Dunn
19a6943a67 Don't use the parent's defered sizing handle if the window in question
is a top-level window


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-29 01:24:40 +00:00
Vadim Zeitlin
51e4e26670 reenabled WM_MOUSELEAVE event handling (patch 1104551); moved duplicated code in its handler in a new GenerateMouseLeave() method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-19 02:31:09 +00:00
Kevin Hock
687706f5e7 Use event modifiers and accessors rather than m_ variables directly, which are now protected rather than public with 2.4 compatibility disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 15:08:15 +00:00
Vadim Zeitlin
e4d03677b9 reset m_hDWP to NULL after calling EndDeferWindowPos()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-12 12:58:59 +00:00
Vadim Zeitlin
8d075f8d86 corrected bg colour inheritance once again: only immediate transparent children should inherit non inheritable parent bg colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-07 20:06:28 +00:00
Vadim Zeitlin
52c3e064c7 don't ignore the background colour set for the dialog, even although it is a standard control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-07 17:10:30 +00:00
Vadim Zeitlin
accbb1e758 use HasTransparentBackground() to correctly draw the background of static text/box on a window with non-inheritable (== own) background set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-07 16:59:48 +00:00
Vadim Zeitlin
c581abbcad extracted background painting in a separate function so that it could be called from derived classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-07 14:38:07 +00:00
Włodzimierz Skiba
e32d4b8f07 wxMSWUniv wxWindowMSW vs. wxWindow fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-05 18:39:48 +00:00
Włodzimierz Skiba
5c64f8d44f MS Smartphone fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-05 10:47:50 +00:00
Vadim Zeitlin
220f77b0d2 restored using DeferWindowPos() for moving all windows at once (this does help with flicker somewhat) but now call EndDeferWindowPos() from WM_WINDOWPOSCHANGED handler, not WM_SIZE one which is never generated for the dialogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-04 18:57:41 +00:00