Ryan Norton
2df0258e2b
fix wxString::Replace when new strings are longer than old string
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-11 09:05:40 +00:00
Vadim Zeitlin
fdc1aa5209
modified AddFile() to copy file to the debug report directory if its path is absolute
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 22:37:43 +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
bcb8ba61c3
fixed MSWGetBgBrush() call, it needs a HWND and not wxWindow * now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 22:12:39 +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
cbc6af74d8
fixed slider positioning/sizing (especially when ticks are shown on both sides)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 18:28:18 +00:00
Vadim Zeitlin
10f80f9bd7
put some asserts to check that inconsistent slider styles are not used
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 18:07:45 +00:00
Vadim Zeitlin
a83b5b74c3
GetParent() was always used in test for wxHSCROLL checked in in last commit; use the parent window recursively as intended instead; slightly simplified the code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 17:55:52 +00:00
Julian Smart
75a2645e11
Hack to make wxStaticBox be repainted when inside a scrolling window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 17:14:58 +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
Mattia Barbon
fa6416df7f
Correct harmless typos.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 14:49:02 +00:00
Stefan Csomor
c277569a74
changing the defaults to the app font
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 07:02:07 +00:00
Kevin Hock
b7e28620c2
kTXNDoFontSubstitutionMask requires OS X 10.3 (undefined symbol on < 10.3)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 04:36:47 +00:00
Vadim Zeitlin
a625f45442
show 20 lines of stack in assert, this should still hold on any reasonable screen
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-09 23:25:10 +00:00
Vadim Zeitlin
e18c3e0207
added AddText() function (trivial wrapper around AddFile()), use it in debug rpt preview
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-09 16:04:22 +00:00
Julian Smart
0f88451561
Lay buttons out on Windows according to conventions. Button spacing is
...
also reduced to a more reasonable size.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-09 11:43:28 +00:00
Ryan Norton
92413909e8
Get rid of superflous if statement - taken care of by the following for loop
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-09 06:42:42 +00:00
Michael Wetherell
ba75c6bb8c
Patch 1173507 by Stas Sergeev. Allow FindFirst to work with patterns
...
such as 'file:abc.zip#zip:/xyz/*' that have a '/' after the 'zip:' since
it is possible to open paths such as 'file:abc.zip#zip:/xyz/123.txt'. Also
allow 'abc.zip#zip:' and 'abc.zip#zip:/' to match the zip's root. And
create a new instance of wxFileSystem within OpenFile to avoid infinite
recursion.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-09 03:06:19 +00:00
Ryan Norton
510bb7480c
REWRITE wxStringBase::append and wxString::Replace.
...
This had to be done because they did not take into account null characters.
([ 1179490 ] wxString::Replace() truncates strings containing null bytes) notified me of this.
Please test and let me know of any problems!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-08 22:53:27 +00:00
Robin Dunn
046d682f0f
Don't call StartingKey if the key was F2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-08 17:32:41 +00:00
Michael Wetherell
43e8916ff3
Documentation fixes, patch 1179223 by Andreas Mohr
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-08 14:34:30 +00:00
Vadim Zeitlin
acf094a27c
compilation fix for wxUSE_MIMETYPE == 0; wxFileType memory leak fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-08 11:46:42 +00:00
Robin Dunn
1c95468e1d
Set the find button to be the default button.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 23:27:33 +00:00
Robert Roebling
a5040b80be
Implemented text wrapping for GTK (1.2 and 2.X).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 22:52:32 +00:00
Ryan Norton
cb28cc9e75
Fix Seeking to end of wxStreamInputStream (patch [ 1178834 ] string stream bad m_len check)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 20:49:34 +00:00
Stefan Csomor
7215f534ad
using font substitution (allows for fallbacks when unicode chars are not available in the current font)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 15:44:45 +00:00
Stefan Csomor
531436ec3d
release does not assert on empty bitmaps anymore
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 15:40:55 +00:00
Włodzimierz Skiba
60ad766eb5
[1178593] Outdated exclamation mark.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 14:52:22 +00:00
Włodzimierz Skiba
49178e6501
Warning fix about possibly misplaced assignment.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 12:40:26 +00:00
David Webster
322d45dd73
New classes for OS/2 and compiler warning suppressions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 04:08:43 +00:00
Vadim Zeitlin
286694ba26
synthesize NM_RCLICK ourselves now that def window proc doesn't do it as we don't give WM_RBUTTONUP to it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 22:34:43 +00:00
Julian Smart
dde4740fe1
Don't always maximize top-level windows on Smartphone
...
Don't initially hide frame under Smartphone (sometimes causes the title not to show)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 21:15:17 +00:00
Julian Smart
c9ab63f44f
As yet unsuccessful attempt to set the focus to the choice control.
...
Also removed unnecessary border style setting code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 21:13:28 +00:00
Michael Wetherell
08335000c5
Use wxFileSystem for left hand side. Patches 1169934 and 1173497 from Stas
...
Sergeev and Artur Kornacki.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 20:35:54 +00:00
Michael Wetherell
d13a08ab40
Add m_allowSeeking for updated filesystem handler to use. Also switch to
...
using 'wx__' prefix for private symbols, and add some comments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 20:32:28 +00:00
Robin Dunn
2aa24b6070
Really remove the droppings when there are no pages
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 17:26:49 +00:00
Robert Roebling
9a2fe01017
Applied gnome print rounded rect patch.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 16:26:13 +00:00
Ryan Norton
caa2490c0f
Fix memory leak when a spacer is added, and crash when a window is added before wxSizerItem::DeleteWindows
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 11:39:04 +00:00
Vadim Zeitlin
ed4eede6c2
define WM_CONTEXTMENU if the standard headers don't
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 09:18:42 +00:00
Julian Smart
e60fbfcb6b
Always Maximize() top-level windows on Smartphone.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 08:34:29 +00:00
Michael Wetherell
21bd196564
Add comments explaining the workaround for mingw 3.2.3
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 08:34:01 +00:00
Vadim Zeitlin
16a0ccd009
use LVS_EX_LABELTIP by default
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 00:32:02 +00:00
Michael Wetherell
f5e93b3586
Change the name of the smart pointer so that wxZipOutputStreamPtr is free
...
for the user.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 00:31:29 +00:00
Vadim Zeitlin
b11433049e
reversed change of rev 1.127: this resulted in bug 1175461 while the original bug which 1.127 fixed can't be reproduced any more (probably fixed by 1.131?)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 00:24:14 +00:00
Vadim Zeitlin
068b764a5a
move code ignoring VK_SPACE and VK_RETURN WM_CHAR messages to MSWDefWindowProc() from MSWWindowProc(): this allows to catch wxCharEvents for them while still not letting the control have them
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-05 23:33:04 +00:00
Vadim Zeitlin
ba8a196102
reset selection anchor when a key changing selection is pressed without Shift (closes bug 1176908)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-05 23:30:47 +00:00
Vadim Zeitlin
b3d6b0c94c
removed code which doesn't do anything (patch 1175655)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-05 23:09:25 +00:00
Vadim Zeitlin
9ea0f2c57f
don't generate assert when creating wxEVT_COMMAND_TREE_ITEM_MENU and the tree is in multi select mode (replaces patch 1177263)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-05 23:07:11 +00:00
Vadim Zeitlin
fbd8ac5236
don't let WM_RBUTTONDOWN reach def window proc as it would enter a local modal message loop waiting for WM_RBUTTONUO and hose our event generation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-05 22:59:22 +00:00
Vadim Zeitlin
dd932cbe1c
added GetVisibleBegin/End() to complement/replace GetFirst/LastVisibleLine() and use them in the code to fix problems when the control is empty and GetLastVisibleLine() returns (size_t)-1 (closes bug 1176561)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-05 22:43:41 +00:00