Commit Graph

814 Commits

Author SHA1 Message Date
Dimitri Schoolwerth
767b35a56f applied patch #1185523: "Replace GetTextExtentPoint with GetTextExtentPoint32"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-17 16:03:25 +00:00
Julian Smart
6a52ea5cb8 HandlePrintClient shouldn't go above a top-level window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-11 12:16:12 +00:00
Julian Smart
4152714397 Fixed bug [ 1195479 ] RedrawWindow() incompatible with eVC3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-09 21:26:31 +00:00
Robin Dunn
da78f3b10c A slightly modified version of Patch #1197468. Keeps track of pending
size/position changes in case there is more than one adjustment for a
window in a single DeferWindowPos set then the pending values can be
used for defaults instead of current values.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-09 16:54:11 +00:00
Robin Dunn
3fca879ce0 Patch #1197009 [wxMSW] Proper repainting when resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-07 19:12:23 +00:00
Michael Wetherell
c282a7a1fe Compilation fix for USE_UNIV=1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-06 15:41:32 +00:00
Chris Elliott
1e2aa2f8df sizer.h needed by cygwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-02 09:19:26 +00:00
Julian Smart
55079b432b Removed previous broken fix for deferred positioning bug, and added
fix using sizers, which works better


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-29 18:58:38 +00:00
Julian Smart
283587a491 Reverted/commented out unsuccessful defer fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-28 18:21:03 +00:00
Julian Smart
8aa35ad016 Typo correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-28 16:14:36 +00:00
Julian Smart
c3723477cc Use real number of children for reserving deferred sizing space;
fix apparent bug in Windows doing deferred positioning


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-28 15:17:02 +00:00
Julian Smart
8e44f3caab Worked around an apparent bug in Windows whereby some deferred positioning
failed: specifically when changing a position from x, to y, to x again.
Added deferred positioning to wxRadioBox, wxSlider and wxSpinCtrl and thereby
eliminated some refresh glitches when resizing.
Eliminated further refresh glitches caused by wxRadioBox (to nearby controls)
by refreshing parent when the radio box moves.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-28 14:45:09 +00:00
Julian Smart
2d29bf54f1 Restored previous revision after retag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-24 10:08:35 +00:00
Julian Smart
c0594d091c Creating new revision to retag with WX_2_6_0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-24 10:06:23 +00:00
Julian Smart
2cef71bc23 Remove obsolete includes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-23 18:59:33 +00:00
Vadim Zeitlin
29215a7105 check for NULL pointer in OnMeasureItem() as well as in OnDrawItem()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-23 12:29:44 +00:00
Julian Smart
7d30268cd9 Use GetCursorPos on WinCE wherever possible (otherwise the wrong
cursor is shown)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-17 14:49:34 +00:00
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