Commit Graph

739 Commits

Author SHA1 Message Date
Vadim Zeitlin
355debca06 added wxPowerEvent; moved power functions stubs to common/powercmn.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-27 14:09:40 +00:00
Vadim Zeitlin
78c9181500 added clipboard events (wxEVT_COMMAND_TEXT_COPY/CUT/PASTE) and implemented them for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-12 15:21:41 +00:00
Paul Cornett
259a4264ac call static functions directly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-07 01:26:34 +00:00
Vadim Zeitlin
6121a198d3 use non numpad equivalents for the numpad keys in CHAR events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-07 00:39:52 +00:00
Vadim Zeitlin
b60978b228 removed more unneeded code in kbd handling logic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-07 00:34:47 +00:00
Vadim Zeitlin
7c722b22b3 removed code which had no effect in HandleChar()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-07 00:31:02 +00:00
Vadim Zeitlin
e7c652bc7a send wxWindowCreateEvent from SubclassWin(), not WM_CREATE handler as we don't get WM_CREATEs for the windows of standard classes (last version of patch 1411774; closes bug 1349291)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 22:34:24 +00:00
Vadim Zeitlin
3f2174bb28 don't generate duplicate event for numpad keys with numlock on (patch 1448853)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 22:27:30 +00:00
Vadim Zeitlin
114c220f2d undid last commit, it was accidental and the commit message was wrong
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-27 10:21:52 +00:00
Vadim Zeitlin
39ea2103cd handle fatal exceptions in the other threads (based on patch 1459813 by Carl-Friedrich Braun)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 18:04:15 +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
Vadim Zeitlin
9ce754611c call SetWindowPos(SWP_FRAMECHANGED) after changing some styles (patch 1445096)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-09 14:12:35 +00:00
Vadim Zeitlin
8e75dca831 don't check that the cursor is over the window calling SetCursor(), it might have captured it and so want to change the cursor even when it's outside the window boundaries
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-09 03:03:15 +00:00
Julian Smart
f350d4b2ee If context menu not handled, treat as left click instead.
If handled, don't send a left click event.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-04 18:18:28 +00:00
Julian Smart
7d4f65e393 Added context menu support under PocketPC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-28 13:37:23 +00:00
Jamie Gadd
b7e5ba8f2d Fixes for WinCE build caused by my last commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-25 03:36:45 +00:00
Jamie Gadd
3c96418b71 Make wx{List,Tree}Ctrl resize their standard font if the user changes the system font.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-24 14:19:12 +00:00
Vadim Zeitlin
ed5bc8f1bf return non-numpad key codes from wxCharCodeMSWToWX() if it is called with lParam==0 (this happens only when it's not called from WM_KEYDOWN/UP/CHAR handler and so we don't have information about which key was really pressed)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-15 15:04:04 +00:00
Michael Wetherell
8d7eaf9140 Warning fixes for VC5 (Igor Korot)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-12 12:16:56 +00:00
Jamie Gadd
deb0d191ca Toplevel windows don't have sibling static boxes. Fixes crash in AdjustStaticBoxZOrder.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-10 21:44:54 +00:00
Jamie Gadd
006b8dff84 Fix drag and drop inside static boxes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 12:42:25 +00:00
Jamie Gadd
26c2a266cd Add check for wxGLCanvas to wxCheckWindowWndProc. Fixes bug #1425106.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-06 13:44:06 +00:00
Jamie Gadd
68df211fae Deprecate wxDC::{Begin,End}Drawing()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 11:59:59 +00:00
Julian Smart
f219764488 Fix for WinCE - no delayed sizing for now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-03 16:30:14 +00:00
Włodzimierz Skiba
521bf4ff3e 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@37162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-26 16:50:23 +00:00
Włodzimierz Skiba
11f104e5c1 Warning fixes after recent commits.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-26 15:29:58 +00:00
Jamie Gadd
dc497201eb Calculate correct client size for windows that are using deferred sizing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-25 23:40:20 +00:00
Robin Dunn
f57f984cc0 Switched wxCheckWindowWndProc to always use the window class name for
comparisons.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-25 20:26:59 +00:00
Vadim Zeitlin
c72b1ad70a no changes but more comments in DoSetClientSize() (explains the change of rev 1.624 and also why we can't use AdjustWindowRect here)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-24 02:04:53 +00:00
Jamie Gadd
5004c3adef Improve extended key handling code readability.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-23 10:01:46 +00:00
Jamie Gadd
413553cc60 Distinguish numpad extended keys. Fixes bug #1327720
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-22 05:04:31 +00:00
Julian Smart
55a667b658 Applied patch [ 1382329 ] [msw] SetScrollbar: Set thumbsize before triggering events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 10:12:31 +00:00
Vadim Zeitlin
0d7f75df79 return correct client size for child window which are being defer-resized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-13 22:07:44 +00:00
Vadim Zeitlin
c70ffbdbf0 fixed crash with ownerdrawn menu items accelerators (Perry Miller)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-13 21:03:19 +00:00
Jamie Gadd
dd28827a04 Repainting fixes/improvements. Use SWP_NOCOPYBITS for statusbars, don't activate when using DeferWindowPos and remove WM_WINDOWPOSCHANGED code (no longer necessary).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-10 21:37:16 +00:00
Robin Dunn
7dd40b6f4b Added wxGetMouseState which returns the current state of the mouse.
Returns an instance of a wxMouseState object that contains the current
position of the mouse pointer in screen coordinants, as well as
boolean values indicating the up/down status of the mouse buttons and
the modifier keys.  Implemented for wxMSW, wxGTK and wxMac.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-05 04:31:27 +00:00
Włodzimierz Skiba
a71d815bbe __WIN95__ removed (used to differ win3.1 vs. 'modern' 95 look, nowadays always defined for WXMSW so useless). Minor cleanings and corrections for correct #includes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-19 10:47:44 +00:00
Chris Elliott
e795e8b56f fix Borland bug http://news.gmane.org/find-root.php?message_id=%3c43A0B07F.8010204%40as.ro%3e
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-15 15:07:36 +00:00
Mart Raudsepp
90e572f1e5 Spelling fixes from Andreas Mohr (patch #1360064)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-19 01:07:56 +00:00
Kevin Hock
2175898cf6 Remove always moving window to the top of the Z-order on on Show
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-08 14:38:20 +00:00
Włodzimierz Skiba
41e155b43e eVC4 warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-06 20:44:43 +00:00
Włodzimierz Skiba
faa49bfd39 Get/SetTitle only for wxTopLevelWindow (wxMSW part).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-03 16:47:29 +00:00
Włodzimierz Skiba
7b504551c2 Pressing build-in joystick on WinCE phones fires wxEVT_JOY_BUTTON_DOWN event.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-29 12:48:07 +00:00
Julian Smart
1ca78aa1dc Applied patch [ 1307056 ] [wxMSW] Focus showing fix for Win2k/XP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-23 10:53:16 +00:00
Dimitri Schoolwerth
2b053ae90a fixed MSVC6 compilation error ("C2639: compiler generated default constructor required by unnamed class")
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-11 15:01:50 +00:00
Vadim Zeitlin
a068160f9f don't call ::ShowWindow() if don't have HWND yet
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-09 16:52:41 +00:00
Vadim Zeitlin
c358ea4147 filter out duplicate mouse move events too; moved last mouse event info from wxWindow class to static variables (there is only one mouse in the system after all, no need to duplicate this data in all windows)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-09 13:04:40 +00:00
Vadim Zeitlin
3ef092d63b (blind) fix for keyboard cues display under XP (bug 1298512)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-27 11:08:42 +00:00