Commit Graph

739 Commits

Author SHA1 Message Date
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
Kevin Hock
cff58b5299 Send mouse leave events in HandleMouseMove if HAVE_TRACKMOUSEEVENT is defined and the window has captured the mouse. This used to be done in OnInternalIdle, which now only sends leave events when HAVE_TRACKMOUSEEVENT is *not* defined. Patch from Jamie Gadd, posted 9/10/2005 on wx-dev.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-11 19:54:58 +00:00
Vadim Zeitlin
d7e0024b09 fix showing keyboard cues under Win2k/XP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-03 23:00:22 +00:00
Vadim Zeitlin
42b1fb630d generate mouse events for all static controls, not just wxStaticLine (patch 1276413 by Jamie Gadd)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-30 13:54:29 +00:00
Vadim Zeitlin
f7040b5fe6 added IsSizeDeferred() (part of patch 1199639)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-28 16:19:45 +00:00
Vadim Zeitlin
3147bb585a pressing enter now activates the default button even when the focus is on a checkbox or radio button
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-25 19:27:43 +00:00
Vadim Zeitlin
952f2aaa86 added wxSIZE_FORCE flag for SetSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-11 13:21:45 +00:00
Vadim Zeitlin
4a712ba3cf fix wxGetMessageName() in Unicode build (patch 1250662)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-06 21:30:24 +00:00
Vadim Zeitlin
86e3091191 don't remember size passed to SetSize() as pending position/size for TLW as deferred move is not used for them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-05 17:35:38 +00:00
Vadim Zeitlin
a7e0e432a2 account for client area origin when returning pending position from DoGetPosition()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-31 18:58:39 +00:00
Vadim Zeitlin
11cfa8ef8d return pending position/size if any, not the current one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-30 00:02:55 +00:00
Vadim Zeitlin
7d86a2d45c replaced wxMoveWindowDeferred() with wxWindow::DoMoveSibling()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-30 00:01:51 +00:00
Vadim Zeitlin
3c29734862 position of wxEVT_MOUSEWHEEL events is now in client, not screen, coordinates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-21 10:14:36 +00:00
Vadim Zeitlin
a3dc1da946 check whether there is a critical window and don't process events then (this is needed as sometimes window proc is called directly without passing by wxEventLoop)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-15 23:01:05 +00:00
Vadim Zeitlin
f55fee08e9 moved Esc processing from wxWindow to wxDialog where it belongs; use the -- to be implemented in 2.7 -- GetEscapeId() to decide what to do when Esc is pressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-14 23:09:00 +00:00
Vadim Zeitlin
b0268dafc1 fixed DoSetClientSize() to use ::MoveWindow() instead of deferred sizing which never updated the client size we were checking here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-02 22:22:20 +00:00
Włodzimierz Skiba
0c0d1521c0 Helpers in disabling warnings for unused params.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-01 13:39:03 +00:00
Julian Smart
e5a870a20f Applied [ 1223122 ] [wxMSW] Proper repainting when resizing - take 2
Jamie Gadd


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-21 16:06:45 +00:00
Julian Smart
e3c93a3225 Fix for eVC++ 3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-17 10:18:07 +00:00
Julian Smart
ce0e1aacbc Applied patch [ 1218833 ] [wxMSW] wxListBox optimisation for XP
Also removed temporary fix to hardwire listbox background colour


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-16 15:36:48 +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
Włodzimierz Skiba
65172406d2 Simpler fix for Borland.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-25 13:02:59 +00:00
Włodzimierz Skiba
82e3664e59 Fixes for Borland access to members in MSWUniv.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-25 12:49:59 +00:00
Julian Smart
e5dbcb50a4 Suppressed error when loading colour bitmap since there's fallback code
(patch 1206066)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-21 16:36:49 +00:00
Robin Dunn
67644c1dd8 Moved the pending pos and size into wxWindowMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-19 22:17:01 +00:00
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