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
Vadim Zeitlin
53a118d6fe
fix wxUniv/MSW compilation with wxUSE_MENUS==0 (patch 1744277)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-27 15:44:06 +00:00
Vadim Zeitlin
b05fde97c5
fix compilation in ANSI STL build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-21 21:29:39 +00:00
Václav Slavík
e0a050e347
more changes to make wx compile without implicit wxString->char* conversion (for STL build)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-20 07:44:45 +00:00
Václav Slavík
52de37c78f
1. made CRT wrappers definitions indepenent of wxUSE_UNICODE: both ANSI and Unicode variants are now defined
...
2. split wxcrt.h into wxcrtbase.h with lowlevel compiler-specific definitions and wxcrt.h with ANSI- and Unicode-compatible wx wrappers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:14:14 +00:00
Vadim Zeitlin
b46b1d59d6
implement event loop for console applications (heavily modified patch 1715735)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-14 23:43:39 +00:00
Vadim Zeitlin
f9c980f617
use wxCopyRectToRECT instead of duplicating it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 23:38:14 +00:00
Václav Slavík
47b378bd88
removed extra semicolons (patch #1700459 ; fixes compilation with gcc's -pedantic flag)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 09:58:37 +00:00
Vadim Zeitlin
5acec11245
added a generic mechanism for registering global handlers for custom windows messages and use it in wxFindReplaceDialog instead of subclassing the parent window, this solves the problem with having 2 find dialogs with the same parent (replaces patch 1447739)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-01 12:07:00 +00:00
Vadim Zeitlin
ad02525dad
don't check whether the window is shown and enabled in AcceptsFocus() itself
...
as it makes overriding it in derived classes problematic; provide a separate
non virtual CanAcceptFocus() method checking whether the window accepts focus
and if it can accept it now and use it instead of AcceptsFocus(); documented
AcceptsFocus() and AcceptsFocusFromKeyboard()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 22:36:24 +00:00
Vadim Zeitlin
b40bf35c76
don't use TPM_RECURSE under NT4, it results in TrackPopupMenu() not showing the menu at all (bug 1663216)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 16:20:30 +00:00
Vadim Zeitlin
47a8a4d5cc
make IsEnabled() return false even if the window parent, and not the window itself, is disabled and added IsThisEnabled() implementing the old IsEnabled() behaviour; also significantly simplify the window state management code in all ports by factoring out the common parts in wxWindowBase
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:01:53 +00:00
Václav Slavík
c9f7896861
first phase of transition to unified Unicode build:
...
1. changed c_str() to return wxCStrData (implicitly convertible to wxChar*)
2. added template type-safe wrappers for vararg functions
3. added wxUniChar class representing single Unicode character
4. changed wxString::operator[] and wxString::iterator to return wxUniChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-17 10:26:10 +00:00
Vadim Zeitlin
609da8bbad
added more message names to wxGetMessageName() (modified patch 1611819)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-16 14:24:01 +00:00
Vadim Zeitlin
58afa32bf4
don't really enable the window when its parent is disabled, just remember to do it later when the parent is enabled back
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-14 11:44:19 +00:00
Vadim Zeitlin
f4322df68b
no changes, just removed TABs/trailing spaces
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-07 22:56:34 +00:00
Julian Smart
b8f434e731
Applied [ 1613294 ] wxGetMouseState/wxIsKeyDown bug
...
(troelsk - allow for left-handed mouse)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-21 15:07:26 +00:00
Robin Dunn
ff7282e135
Allow wxWANTS_CHARS to be effective on native controls too
...
(ported from 2.8 branch)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 21:53:50 +00:00
Vadim Zeitlin
a8b2285edf
only set cursor immediately in SetCursor() if the mouse is currently inside the window or we capture it (fixes the problem introduced in rev 1.675 while still correcting the original bug that change was done to fix)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-12 01:28:14 +00:00
Vadim Zeitlin
7cc4466989
include X11/Xutil.h for wxMotif compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 01:28:10 +00:00
Vadim Zeitlin
ada5f90df8
document HasAlignment(), Left/RightIndent() and Tabs() (patch 1527048)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 00:49:19 +00:00
Vadim Zeitlin
aafb997862
load _TrackMouseEvent dynamically to make it possible to run wx programs on systems with comctl32.dll 4.70 (closes 1215615)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 15:37:55 +00:00
Vadim Zeitlin
3febc967a9
put #if wxUSE_STATBOX around wxStaticBox usage (bug 1568939)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-20 14:33:49 +00:00
Włodzimierz Skiba
967acfb5cd
wxUnivMSW build fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-10 08:05:19 +00:00
Vadim Zeitlin
c719013fd4
return false from IsDoubleBuffered() if the first top level parent is not double buffered
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 16:57:06 +00:00
Vadim Zeitlin
2e992e06a7
added wxWindow::IsDoubleBuffered() and improve wxBufferedDC (patch 1565330)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 16:39:34 +00:00
Jamie Gadd
b728a21269
Re-enable WM_PRINTCLIENT handling code as it is needed to correctly paint nested notebooks (closes bug #1544282 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-29 16:36:51 +00:00
Vadim Zeitlin
e0e6ac8acc
allow specifying the size of wxDCTemp and do specify it for the one used with wxEraseEvents
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 23:51:29 +00:00
Vadim Zeitlin
e5b5af9139
return correct coordinates for child windows from DoGetPosition() in RTL mode (patch 1552664)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 23:42:19 +00:00
Vadim Zeitlin
98ebf9194b
ensure that IsDialogMessage() is not called in the situations when it may hang not only from the immediate parent of the control which has focus but also from its grandparents
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 16:52:20 +00:00
Włodzimierz Skiba
57bd4c6031
Include wx/msw/wrap*.h according to pch support (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 19:01:45 +00:00
Włodzimierz Skiba
08a5813350
WinCE build fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 19:23:15 +00:00
Michael Wetherell
dcfd4ac412
A better compile fix for Wine (which lacks pbt.h).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 18:33:31 +00:00
Michael Wetherell
24aab8e81a
Hacks for wine.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 16:36:47 +00:00