Commit Graph

21434 Commits

Author SHA1 Message Date
Vadim Zeitlin
4a085fca7a compilation fix in GetPixelSize() for wxUSE_GRAPHICS_CONTEXT==0 [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-14 22:57:57 +00:00
Vadim Zeitlin
17c07bd8af fix for wxUSE_STL=1 build with MSVC8 with _HAS_ITERATOR_DEBUGGING==0 (patch 1712215) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-12 18:25:31 +00:00
Vadim Zeitlin
2a1b187b50 getting text colour using the themes API doesn't seem to work, revert to using the global system colours for it [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-12 03:18:46 +00:00
Vadim Zeitlin
b4c10903ff apply the table bg colour between the cells too (patch 1713170) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 23:12:33 +00:00
Vadim Zeitlin
e07964301a fix wxComboCtrl colours under Windows Vista (patch 1710006) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 22:56:00 +00:00
Vadim Zeitlin
84fa2eebd2 translate the 'About' string (patch 1717088) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 22:39:15 +00:00
Robin Dunn
bc8f0f9d07 Disable the for loop in ~wxAuiManager to avoid possibly accessing
memory via bad pointers.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 17:23:34 +00:00
Robert Roebling
1e3847f4b9 Call wxKeyEvent::SetEventObject() if no last key event
available from which it is otherwise copied.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 16:48:46 +00:00
Vadim Zeitlin
86f2f2101e use LRESULT instead of LONG in MSWOnDraw() to fix it under Win64 (bug 1715591) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 13:05:02 +00:00
Vadim Zeitlin
9038e724d3 don't try to update TLW default button in WM_SET/KILLFOCUS handlers if the TLW is being deleted (bug 1660913) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 13:04:33 +00:00
Robert Roebling
491c407519 Support setting paper size, collate and orientation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 09:23:16 +00:00
Mart Raudsepp
5dd5470a3b [wxGTK2] Support wxTEXT_ALIGNMENT_JUSTIFIED in wxTextCtrl if GTK+ version is at least 2.11. This is for future benefits as stable gtk+-2.12 should come out much before wxWidgets new stable cycle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 07:25:07 +00:00
Vadim Zeitlin
4871a65d6f declare variables in the beginning of the block in C files [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-10 15:10:04 +00:00
Vadim Zeitlin
2fa68e336b fix unused variable warning under non-MSW platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-10 02:07:41 +00:00
Vadim Zeitlin
3fe1a32c22 remove unused static function (avoids a warning about it)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-10 02:06:45 +00:00
Vadim Zeitlin
fc56ba9552 use .c_str() inside vararg functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-10 02:05:08 +00:00
Vadim Zeitlin
9ae4fd9db4 added wxListCtrl::SetItemPtrData() to allow associating pointers with items under 64 bit architectures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-10 02:02:21 +00:00
Vadim Zeitlin
7359bd292f define wxConvCurrent when wxUSE_WCHAR_T==0 too, this fixes wxMGL link in this build configuration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 18:10:26 +00:00
Robin Dunn
a599423672 Prevent segfaulting if a NULL window is passed to the DCs, avoid
reasserting if the base class already did it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 20:10:47 +00:00
Vadim Zeitlin
e9528e32da compilation fixes for wxUSE_WCHAR_T==0 (this is the case for DJGPP which is used for wxMGL compilation)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 20:05:16 +00:00
Stefan Csomor
b56eab36ac if it's a separate thread, it's allowed to hang (perf issue reported by BOINC)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 04:52:26 +00:00
Robin Dunn
9c57223c80 Assert on NULL window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-07 23:44:39 +00:00
Robert Roebling
c307c6dfd4 Apply [ 1712381 ] CRASH: closing floating panel on GTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 19:43:02 +00:00
Paul Cornett
c5fd16fca0 build fix for wxUSE_DRAGIMAGE==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 18:48:56 +00:00
Paul Cornett
f3aca483fe build fix for wxUSE_CONFIG==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 17:13:30 +00:00
Vadim Zeitlin
762b9d2f34 fix compilation in wxUSE_MENUS==0 case to fix wxDFB build [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 14:51:51 +00:00
Vadim Zeitlin
89add395bb fix warning about signed/unsigned comparison; use STL-compatible methods; deTABified
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 14:19:50 +00:00
Robert Roebling
503af0875f Backport from HEAD: Fix memory leak in wxAUI.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 13:55:36 +00:00
Robert Roebling
26001fdbee Fixed [ 1712998 ] wxFD_FILE_MUST_EXIST does nothing on GTK
(broken both in GTK+ and generic code).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 13:53:12 +00:00
Robert Roebling
d7749fea0f Apply [ 1713345 ] combobox: cmd accelerators shouldn't steal editing hotkeys
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 13:15:47 +00:00
Vadim Zeitlin
200a46635e compilation fix when not using PCH after the last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 02:19:16 +00:00
Stefan Csomor
c9c94a99ff trying optimal scrolling solution perf-wise
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 14:01:12 +00:00
Robin Dunn
94384f859f Oops, put the WXUNUSED in the wrong spot.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 19:45:38 +00:00
Robin Dunn
9e20de35b1 Backport change to wxGrid::OnSize so both subwindow sizes and
scrollars will be adjusted.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 19:41:52 +00:00
Stefan Csomor
b17e81e0e2 adjusting refcount asserts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 19:34:00 +00:00
Vadim Zeitlin
3b85f3189e fix wxStringOutputStream::Write() in Unicode build when the output overlaps a boundary between UTF-8 characters (bug 1701426)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 13:52:19 +00:00
Stefan Csomor
82520ec1fa Patch 1708290
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 13:35:00 +00:00
Stefan Csomor
45070d269b Patch 1678304
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 11:55:02 +00:00
Stefan Csomor
32107b5d76 Patch 1709069
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 11:49:35 +00:00
Stefan Csomor
718dbef6c5 Patch 1709108
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 09:37:56 +00:00
Vadim Zeitlin
94356f539a fix m_sizerPage memory leak for the wizards not using sizers (replaces patch 1708331, fixes bug 1647290) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 19:48:04 +00:00
Vadim Zeitlin
1885d4d4e2 don't drop lines without trailing new line character in wxExecute() with capture [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 01:17:43 +00:00
Michael Wetherell
08b8d89fc6 Map illegal UTF-8 sequences to a range in Unicode's private use area as
discussed recently on wx-users.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-28 15:56:17 +00:00
Robin Dunn
9305b2c072 Backport fix for window being repositioned after hiding, then reshowing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 18:19:59 +00:00
Paul Cornett
0263748a12 Fix return type for "map_event" and "unmap_event" handlers.
Fix wrong return in Show().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 16:42:52 +00:00
Robert Roebling
d9138d0539 Don't emit EVT_TEXT after wxComboBox::SetValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 21:18:24 +00:00
Vadim Zeitlin
93c2397b68 don't assert in wxUniv SetSelection(wxNOT_FOUND), just clear text zone contents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 02:23:51 +00:00
Vadim Zeitlin
9fe19926fa don't assert in SetSelection(wxNOT_FOUND), just clear text zone contents (patch 1707475) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 02:17:18 +00:00
Robin Dunn
c15bb63bc3 invalidate the best size when adding or deleting items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 01:04:47 +00:00
Robin Dunn
c92bd38c72 ensure there is a current cell before using it to try and get width/height
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 00:15:42 +00:00