Václav Slavík
eed04c9999
changed ShowWithEffects() to use directional wxSHOW_EFFECT_XXX flags instead of additional wxDirection argument that doesn't always make sense; this also means the direction is never implicit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-08 21:56:26 +00:00
Vadim Zeitlin
f801d19a74
ENDSESSION_LOGOFF is a bit flag, test for it using bit end and not equality in WM_ENDSESSION handler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-11 17:56:30 +00:00
Václav Slavík
89267fe552
fixes to Freeze/Thawn when the window is shown or hidden in between Freeze and Thaw
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 11:55:11 +00:00
Václav Slavík
304435501b
ShowWithEffect must call wxWindowBase::Show
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-16 11:10:40 +00:00
Vadim Zeitlin
55cd5d10cd
don't generate duplicate resume events for PBT_APMRESUMEAUTOMATIC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:12:45 +00:00
Julian Smart
fe5451982e
Corrected typecasts (Sebastian Gottschalk)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 14:24:45 +00:00
Vadim Zeitlin
936bb82ec5
wxUniv compilation fix for gs_windowHandles assignment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-08 23:04:39 +00:00
Vadim Zeitlin
e322e3b6cc
call SetHWND(hWnd) from SubclassWin(), this is consistent with calling SetHWND(0) from UnsubclassWin()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-05 15:16:50 +00:00
Vadim Zeitlin
dca0f65178
more /Wp64 warning fixes: mostly use UINT_PTR instead of UINT and define our WX[WL]PARAM with __w64 if available to avoid hundreds of warnings when casting LPARAMs to pointers/handles
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-28 02:22:52 +00:00
Vadim Zeitlin
d9fda37ba1
restore checks for SM_SWAPBUTTON, it is not defined in WinCE SDK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 22:59:07 +00:00
Vadim Zeitlin
fcc7fdb689
don't clutter the code with (apparently) unnecessary SM_SWAPBUTTON checks (patch 1892656)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-15 14:35:11 +00:00
Julian Smart
df707c27b3
Cut down on unnecessary update events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-14 11:08:49 +00:00
Václav Slavík
b65f16dabd
fixed wxTextCtrl to not process clipboard events twice if there's a custom wxEVT_COMMAND_TEXT_* handler; move WM_PASTE/CUT/COPY processing to wxWindow where it belongs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-02 22:29:19 +00:00
Vadim Zeitlin
4eb77d8bce
generate focus and kill focus events for wxTextCtrl at wxWindow level instead of doing it in wxTextCtrl itself and specifically disabling focus event generation for text controls in wxWindow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 09:34:05 +00:00
Vadim Zeitlin
e044841350
don't create unnecessary temporary wxFont (patch theFont)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-16 01:43:00 +00:00
Vadim Zeitlin
e2fc2bd51c
add wxDL_QUIET flag; use RawGetSymbol() instead of GetSymbol() in wxDL_INIT_FUNC to avoid error messages for missing functions (this is also consistent with wxDL_INIT_FUNC_AW)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-06 01:30:58 +00:00
Vadim Zeitlin
6e3e6c8efb
fix comparison of BYTE variable with -1 after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-06 00:27:41 +00:00
Vadim Zeitlin
ad294cb8f6
fix handling of OEM VKs in wxCharCodeWXToMSW() (patch 1810940)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-05 18:59:09 +00:00
Vadim Zeitlin
17808a7596
move Freeze() and Thaw() to wxWindowBase to ensure that they behave consistently (i.e. recursively, as described in the docs) in all ports; removed different duplications of freeze count from derived classes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-05 00:21:31 +00:00
Robert Roebling
1950edc304
Compilo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-22 21:21:17 +00:00
Vadim Zeitlin
eeb0bee1d3
unset the window as invoking window of wxCurrentPopupMenu (which now exists in all ports and not just wxMSW-based ones) if it being destroyed before the menu itself (modified patch 1837214)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-22 16:29:38 +00:00
Robert Roebling
888dde65f4
DC reorganization
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-30 13:48:22 +00:00
Václav Slavík
937013e0fd
1. added wxEvtHandler::SafelyProcessEvent() and wxWindow::HandleWindowEvent() to correctly handle exceptions in even handlers in wxGTK
...
2. use HandleWindowEvent() everywhere as more obvious and convenient shortcut for GetEventHandler()->ProcessEvent(); also for consistency with wxGTK where it's required
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-29 17:00:58 +00:00
Vadim Zeitlin
214875504e
define AW_XXX constants if SDK doesn't (fixes VC6 compilation, patch 1840451)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-28 19:03:07 +00:00
Julian Smart
28bf925c65
Fixed bug in border style translation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-28 18:56:39 +00:00
Vadim Zeitlin
376d7d9764
added Show/HideWithEffect() and implemented them using AnimateWindow() for Win32
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-24 16:15:08 +00:00
Vadim Zeitlin
6719c06a97
no real changes, just some cleanup: add wxIsAltDown() in addition to the existing wxIsShift/CtrlDown() and wxIsAnyModifiedDown() to test for all of them at once (slightly modified patch 1833235)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-17 00:24:07 +00:00
Vadim Zeitlin
0075ea2279
fix another minor bug in DLGC_WANTMESSAGE handling in MSWProcessMessage()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 17:32:47 +00:00
Vadim Zeitlin
ac5ada9671
fix unreachable code warning in TranslateBorder()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 16:16:58 +00:00
Vadim Zeitlin
53b0c2bcdd
correction to the changes of r49805 to make the code work as expected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 16:16:04 +00:00
Julian Smart
28319afe55
Tidying
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 12:17:25 +00:00
Julian Smart
dc797d8e1b
More border rationalisation. GetDefaultBorder is now mostly defined in base class files.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 12:10:34 +00:00
Vadim Zeitlin
8e86978af5
don't forward Enter presses to the default button if any of the ancestor windows has DLGC_WANTMESSAGE dialog code (slightly modified patch 1828309)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-10 01:15:03 +00:00
Vadim Zeitlin
06d7ed27a1
reverted unrelated changes accidentally committed as part of r49411
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-28 00:00:12 +00:00
Vadim Zeitlin
90df603354
release update region as soon as we finished painting the window instead of keeping it indefinitely (bug 1819635)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 23:27:17 +00:00
Vadim Zeitlin
d935b42145
wxUniv compilation fixes in themed border drawing code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-11 09:46:00 +00:00
Julian Smart
24bd6cb9df
Optimized update events by only sending them to visible windows
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-21 10:51:31 +00:00
Vadim Zeitlin
0edeeb6d96
use wxWindow::NewControlId() instead of wxNewId() to avoid clashes with user-defined ids; bug fixes in wxMSW for negative menu and toolbar items ids
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-20 22:58:55 +00:00
Julian Smart
78cd9c69eb
wxBORDER_THEME now means 'use an appropriate themed border' on all plaforms
...
as opposed to wxBORDER_NONE which may or may not show a border, depending on control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-18 10:48:05 +00:00
Robert Roebling
66e2ba91b2
Compile error (no idea why Mingw doesn't like wxPoint())
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-08 18:08:14 +00:00
Julian Smart
f31bbefd10
Bring back double border
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-15 20:30:17 +00:00
Julian Smart
967d3d9783
Use new function GetItemLabel
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-13 15:35:30 +00:00
Julian Smart
4c0d2cd3d0
Toolbars shouldn't have themed borders
...
Made it easier to switch off theme borders in wxWindow if necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-09 15:05:56 +00:00
Julian Smart
6f3f9b50aa
Made wxBORDER_THEME the same as wxBORDER_DEFAULT
...
Moved wxControl::GetBorderStyle into wxWindowMSW::GetBorderStyle
but added GetBorderStyle to have the same behaviour as before (so e.g.
notebook panels don't get borders)
Improved help window borders
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-08 12:39:56 +00:00
Julian Smart
a047aff270
Added wxBORDER_THEME, wxWindow::GetDefaultBorderForControl(), wxWindow::CanApplyThemeBorder().
...
wxTextCtrl and wxSearchCtrl now get the correct border on wxMSW, and the wxRichTextCtrl sample
also now demonstrates correct borders.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-07 19:22:43 +00:00
Julian Smart
aa767a4521
Added EVT_MOVE_START, EVT_MOVE_END (wxMSW only for now)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-01 15:34:48 +00:00
Vadim Zeitlin
2f68482ef8
CE compilation fix for X button stuff
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-29 14:08:59 +00:00
Vadim Zeitlin
01101e2da6
added support for 2 extra mouse buttons (patch 1757630)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-29 01:04:33 +00:00
Vadim Zeitlin
46753a7ce5
fixed showing busy cursor for disabled windows and during wxExecute()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-13 14:09:08 +00:00
Vadim Zeitlin
edc0987174
CanAcceptFocus() now returns true if either the window itself or one of its children accepts focus; added new IsFocusable() to test whether the window itself accepts focus
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-28 12:04:06 +00:00