]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
15 years agowxRTC's own caret is more reliable than the generic one, so use it.
Julian Smart [Mon, 14 Sep 2009 15:52:48 +0000 (15:52 +0000)] 
wxRTC's own caret is more reliable than the generic one, so use it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded dummy wxPG_THEME_BORDER style for backwards compatibility
Jaakko Salli [Mon, 14 Sep 2009 15:17:50 +0000 (15:17 +0000)] 
Added dummy wxPG_THEME_BORDER style for backwards compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFixed use of map::erase() in ClearActionTriggers() (this bug was revealed by static...
Jaakko Salli [Mon, 14 Sep 2009 14:53:13 +0000 (14:53 +0000)] 
Fixed use of map::erase() in ClearActionTriggers() (this bug was revealed by static code analysis - see ticket #11195)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadded missing destructor
Stefan Csomor [Mon, 14 Sep 2009 13:23:48 +0000 (13:23 +0000)] 
added missing destructor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agofixing and completing iPhone sound
Stefan Csomor [Mon, 14 Sep 2009 13:07:23 +0000 (13:07 +0000)] 
fixing and completing iPhone sound

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoenable backface culling which is not enabled by default on ES
Stefan Csomor [Mon, 14 Sep 2009 11:52:43 +0000 (11:52 +0000)] 
enable backface culling which is not enabled by default on ES

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoremove debug logging
Stefan Csomor [Mon, 14 Sep 2009 08:50:17 +0000 (08:50 +0000)] 
remove debug logging

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoLaunch Services are not available on iPhone
Stefan Csomor [Mon, 14 Sep 2009 08:38:05 +0000 (08:38 +0000)] 
Launch Services are not available on iPhone

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix VC6 compilation after r61919.
Vadim Zeitlin [Mon, 14 Sep 2009 08:37:28 +0000 (08:37 +0000)] 
Fix VC6 compilation after r61919.

Work around VC6 bug which resulted in error C2639 when compiling the
declaration of an unnamed struct inside wxGridCellAttrProvider.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadding glFrustum to compat API, supporting SetColour on OpenGL ES
Stefan Csomor [Mon, 14 Sep 2009 08:37:23 +0000 (08:37 +0000)] 
adding glFrustum to compat API, supporting SetColour on OpenGL ES

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded support for corner, row and column headers renderers to wxGrid.
Vadim Zeitlin [Mon, 14 Sep 2009 00:45:29 +0000 (00:45 +0000)] 
Added support for corner, row and column headers renderers to wxGrid.

Make it possible to customize the appearance of wxGrid corner window and its
row and column headers by defining custom renderers for them.

Add demonstration of this new feature to the grid sample and update the
documentation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDocument wxGridCellAttrProvider.
Vadim Zeitlin [Mon, 14 Sep 2009 00:45:18 +0000 (00:45 +0000)] 
Document wxGridCellAttrProvider.

Added basic documentation for wxGridCellAttrProvider and
wxGridCellAttr::wxAttrKind enum used by it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoRemove unneeded pointer check.
Vadim Zeitlin [Mon, 14 Sep 2009 00:44:59 +0000 (00:44 +0000)] 
Remove unneeded pointer check.

This was flagged as an error by static code analyse tools.

Closes #11195.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadapting to new sound file organization for osx
Stefan Csomor [Sun, 13 Sep 2009 18:28:45 +0000 (18:28 +0000)] 
adapting to new sound file organization for osx

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoMinor code cleanup
Jaakko Salli [Sun, 13 Sep 2009 17:52:32 +0000 (17:52 +0000)] 
Minor code cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadding types for OpenGL on iPhone
Stefan Csomor [Sun, 13 Sep 2009 17:45:21 +0000 (17:45 +0000)] 
adding types for OpenGL on iPhone

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadapting to new sound files organization on osx
Stefan Csomor [Sun, 13 Sep 2009 17:41:36 +0000 (17:41 +0000)] 
adapting to new sound files organization on osx

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoavoiding potential infinite recursion
Stefan Csomor [Sun, 13 Sep 2009 17:34:51 +0000 (17:34 +0000)] 
avoiding potential infinite recursion

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agosupporting rotated display correctly for display size
Stefan Csomor [Sun, 13 Sep 2009 17:33:46 +0000 (17:33 +0000)] 
supporting rotated display correctly for display size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoenabling correct audio framework on OSX
Stefan Csomor [Sun, 13 Sep 2009 17:23:53 +0000 (17:23 +0000)] 
enabling correct audio framework on OSX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agosound implementation for AudioToolbox on 10.5 and iPhone
Stefan Csomor [Sun, 13 Sep 2009 17:23:05 +0000 (17:23 +0000)] 
sound implementation for AudioToolbox on 10.5 and iPhone

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoOpenGL for iPhone
Stefan Csomor [Sun, 13 Sep 2009 17:22:13 +0000 (17:22 +0000)] 
OpenGL for iPhone

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoOpenGL changes for carbon and cocoa
Stefan Csomor [Sun, 13 Sep 2009 17:19:01 +0000 (17:19 +0000)] 
OpenGL changes for carbon and cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadding emulation API for OpenGL ES platforms
Stefan Csomor [Sun, 13 Sep 2009 17:17:40 +0000 (17:17 +0000)] 
adding emulation API for OpenGL ES platforms

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoBe more paranoid about parent window possibly being NULL (partly fixes #11115).
Stefan Neis [Sun, 13 Sep 2009 15:48:40 +0000 (15:48 +0000)] 
Be more paranoid about parent window possibly being NULL (partly fixes #11115).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix test compilation under OS X.
Vadim Zeitlin [Sun, 13 Sep 2009 12:26:03 +0000 (12:26 +0000)] 
Fix test compilation under OS X.

wxFileOffset and ssize_t are not the same type under this platform so using
CPPUNIT_ASSERT_EQUAL() with the arguments of these types fails. Use ssize_t
instead of wxFileOffset to fix this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoReenable build of execmon in utils bakefile.
Vadim Zeitlin [Sun, 13 Sep 2009 11:55:08 +0000 (11:55 +0000)] 
Reenable build of execmon in utils bakefile.

Undo r61894, it's not necessary to disable build of execmon any longer after
r61901.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadd execmon bakefile (which was forgotten in the initial commit) and regenerate execm...
Francesco Montorsi [Sun, 13 Sep 2009 10:09:59 +0000 (10:09 +0000)] 
add execmon bakefile (which was forgotten in the initial commit) and regenerate execmon makefiles

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDocument the meaning of empty value name in wxRegKey methods.
Vadim Zeitlin [Sat, 12 Sep 2009 22:48:29 +0000 (22:48 +0000)] 
Document the meaning of empty value name in wxRegKey methods.

Empty value refers to the default or unnamed key in Win32 API but this may be
not clear to people unused to it so mention this explicitly.

Closes #11191.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoWrite correct number of bytes in wxFile::Write(wxString).
Vadim Zeitlin [Sat, 12 Sep 2009 22:40:42 +0000 (22:40 +0000)] 
Write correct number of bytes in wxFile::Write(wxString).

This function was broken for conversions using more than one byte per
character (e.g. UTF-16 or UTF-32) and also even for UTF-8 for strings
containing NUL bytes as it used strlen() to determine the number of bytes to
write out instead of using the really needed number.

Fix this by using the wxCharBuffer::length() method which always returns the
correct value.

Also add a wxFile unit test verifying that it can correctly read back a string
written using any of UTF-8, UTF-16 or UTF-32.

Closes #11192.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoExtract TestFile class in a separate header.
Vadim Zeitlin [Sat, 12 Sep 2009 22:40:35 +0000 (22:40 +0000)] 
Extract TestFile class in a separate header.

This allows to reuse it in the other tests which need to create a temporary
file automatically destroyed on test exit.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdd convenient wxMBConv::cMB2WC/WC2MB overloads taking buffers.
Vadim Zeitlin [Sat, 12 Sep 2009 22:40:25 +0000 (22:40 +0000)] 
Add convenient wxMBConv::cMB2WC/WC2MB overloads taking buffers.

These overloads allow not to worry about buffer lengths and just convert
between wxCharBuffer and wxWCharBuffer directly in a convenient way.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUnregister wake up pipe file fd in ~wxConsoleEventLoop.
Vadim Zeitlin [Sat, 12 Sep 2009 22:40:18 +0000 (22:40 +0000)] 
Unregister wake up pipe file fd in ~wxConsoleEventLoop.

We must unregister the wake up pipe file descriptor which we register with the
IO dispatcher in wxConsoleEventLoop ctor, otherwise doing it the next time
(i.e. if wxConsoleEventLoop is deleted and recreated) results in asserts, at
least when using wxSelectDispatcher and not wxEpollDispatcher (i.e. under any
non-Linux Unix system).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDisable build of utils/execmon.
Vadim Zeitlin [Sat, 12 Sep 2009 15:29:11 +0000 (15:29 +0000)] 
Disable build of utils/execmon.

Bakefile for this program doesn't exist so its makefiles are out of date and
it doesn't build any more now, disable its build until the bakefile is checked
in.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoRebake all the samples, demos and tests makefiles.
Vadim Zeitlin [Sat, 12 Sep 2009 13:38:08 +0000 (13:38 +0000)] 
Rebake all the samples, demos and tests makefiles.

This should have been committed together with the changes to the debug flags
handling in build/bakefiles in r61887.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoregenerated
Vadim Zeitlin [Sat, 12 Sep 2009 13:35:16 +0000 (13:35 +0000)] 
regenerated

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoRemove WX_DEBUG option from Unix wx presets, it's not needed any more.
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:49 +0000 (11:29 +0000)] 
Remove WX_DEBUG option from Unix wx presets, it's not needed any more.

It doesn't make sense to select debug or release build of wxWidgets any more
as they are now compatible under Unix. Under Windows the option is still
needed but it selects the build using debug (or not) version of the CRT rather
than the one built with __WXDEBUG__ defined.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdd wxDEBUG_LEVEL to wx/setup.h and document it.
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:42 +0000 (11:29 +0000)] 
Add wxDEBUG_LEVEL to wx/setup.h and document it.

Under Unix wxDEBUG_LEVEL can be set using configure --enable-debug=max option
but under Windows it needs to be changed in wx/msw/setup.h so add it to this
file with a comment explaining its meaning.

Also document this symbol with the other preprocessor constants.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoChange Unix build system to not use debug build any more.
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:31 +0000 (11:29 +0000)] 
Change Unix build system to not use debug build any more.

Remove "d" suffix from the libraries and the BUILD variable which is not used
any longer.

Also ignore (but still support, for compatibility) --debug option in wx-config.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse wxDEBUG_LEVEL instead of __WXDEBUG__ in wxInfoMessageBox().
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:23 +0000 (11:29 +0000)] 
Use wxDEBUG_LEVEL instead of __WXDEBUG__ in wxInfoMessageBox().

Also disable sizer-drawing code unless wxDEBUG_LEVEL>=2 as we don't want it to
be available in production versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse "d" suffix according to DEBUG_RUNTIME_LIBS, not DEBUG_FLAG.
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:11 +0000 (11:29 +0000)] 
Use "d" suffix according to DEBUG_RUNTIME_LIBS, not DEBUG_FLAG.

The "d" suffix is now only used under Windows and indicates that we link with
debug CRT version.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDefine wxDEBUG_LEVEL in both debug and release builds as 1.
Vadim Zeitlin [Sat, 12 Sep 2009 11:28:52 +0000 (11:28 +0000)] 
Define wxDEBUG_LEVEL in both debug and release builds as 1.

By default include assertions and debug logging in both debug and release
builds but disable them in application release builds (when NDEBUG is
defined).

Also update (more accurately, replace) debugging overview.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoRestore correct setting of the background colour.
Vadim Zeitlin [Sat, 12 Sep 2009 10:59:43 +0000 (10:59 +0000)] 
Restore correct setting of the background colour.

The background colour for the HDC used for drawing the native controls wasn't
set correctly any more after changes of r61859 but we do need to call it or
the text in edit and similar controls is drawn using the default background
even if we return the correct brush which is used for erasing the control.

Closes #11190.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDocument ctors creating a wxString from repeated characters.
Vadim Zeitlin [Sat, 12 Sep 2009 10:42:04 +0000 (10:42 +0000)] 
Document ctors creating a wxString from repeated characters.

Closes #11187.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDocument wxStandardPaths vendor-related changes.
Vadim Zeitlin [Sat, 12 Sep 2009 10:41:55 +0000 (10:41 +0000)] 
Document wxStandardPaths vendor-related changes.

The change in the values returned by wxStandardPaths functions is important as
it's incompatible with 2.8 if the application defines a vendor name so must be
mentioned in docs/changes.txt.

Also update the documentation of the class itself and mention UseAppInfo() in
the overview.

Closes #11189.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadding Kevin's fix for wxTOOL_STYLE_SEPARATOR
Stefan Csomor [Fri, 11 Sep 2009 21:01:45 +0000 (21:01 +0000)] 
adding Kevin's fix for wxTOOL_STYLE_SEPARATOR

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFixed constants of the new wxPG_EX styles
Jaakko Salli [Fri, 11 Sep 2009 16:41:31 +0000 (16:41 +0000)] 
Fixed constants of the new wxPG_EX styles

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agowxPropertyGrid: added wxPG_NO_INTERNAL_BORDER, wxPG_EX_NO_TOOLBAR_DIVIDER
Julian Smart [Fri, 11 Sep 2009 11:49:03 +0000 (11:49 +0000)] 
wxPropertyGrid: added wxPG_NO_INTERNAL_BORDER, wxPG_EX_NO_TOOLBAR_DIVIDER
and wxPG_EX_TOOLBAR_SEPARATOR styles for finer control over borders.
Borders around property grid are now native for consistency.
Some strange VC6 compiler errors fixed, plus size assertion in
sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDocumented a couple of combo control fixes on Mac.
Julian Smart [Fri, 11 Sep 2009 11:42:05 +0000 (11:42 +0000)] 
Documented a couple of combo control fixes on Mac.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFixed a bug on Mac whereby popup window disappeared as soon as the button was clicked...
Julian Smart [Fri, 11 Sep 2009 09:30:51 +0000 (09:30 +0000)] 
Fixed a bug on Mac whereby popup window disappeared as soon as the button was clicked (text control getting focus)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix on Mac to prevent scrollbars always being shown
Julian Smart [Fri, 11 Sep 2009 08:55:59 +0000 (08:55 +0000)] 
Fix on Mac to prevent scrollbars always being shown

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoNotify if the grid is being destroyed in an event generated by it
Jaakko Salli [Thu, 10 Sep 2009 14:15:32 +0000 (14:15 +0000)] 
Notify if the grid is being destroyed in an event generated by it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoMention wxOSX/Cocoa in the old wxCocoa docs.
Vadim Zeitlin [Thu, 10 Sep 2009 12:49:06 +0000 (12:49 +0000)] 
Mention wxOSX/Cocoa in the old wxCocoa docs.

The old wxCocoa port isn't what most people are looking for so point them to
wxOSX/Cocoa if they look under docs/cocoa.

Closes #11182.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdapted wxPGComboBox margins setup to changes in wxComboCtrl
Jaakko Salli [Wed, 9 Sep 2009 17:26:46 +0000 (17:26 +0000)] 
Adapted wxPGComboBox margins setup to changes in wxComboCtrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoVarious improvements to wxComboCtrl's text ctrl left margin setup: less #defines...
Jaakko Salli [Wed, 9 Sep 2009 16:41:23 +0000 (16:41 +0000)] 
Various improvements to wxComboCtrl's text ctrl left margin setup: less #defines, better margin when SetCustomPaintWidth() has been called, fixed SetFont() behavior on wxMSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFixed a warning generated by GCC 4.4.0
Jaakko Salli [Tue, 8 Sep 2009 14:03:30 +0000 (14:03 +0000)] 
Fixed a warning generated by GCC 4.4.0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse real id for wxPGCanvas
Jaakko Salli [Tue, 8 Sep 2009 13:57:38 +0000 (13:57 +0000)] 
Use real id for wxPGCanvas

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoSet correct foreground default in wxControl::DoMSWControlColor().
Vadim Zeitlin [Tue, 8 Sep 2009 12:23:28 +0000 (12:23 +0000)] 
Set correct foreground default in wxControl::DoMSWControlColor().

Instead of hard-coding GetSysColor(COLOR_WINDOWTEXT), use
GetForegroundColour() which will call GetDefaultAttributes() to retrieve the
default foreground appropriate for this control.

This also allows to make the code simpler by calling SetTextColor() only once.

See #1691.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDon't always override the default background colours.
Vadim Zeitlin [Tue, 8 Sep 2009 12:23:17 +0000 (12:23 +0000)] 
Don't always override the default background colours.

The wxColour argument taken by wxControl::DoMSWControlColor() allows to
override the default colour, it shouldn't be used in MSWControlColor() as this
resulted in always using custom colours for the controls, even when the user
hadn't changed them. Fix this by not passing any valid colour to it in this
case and allowing it to deduce the correct colour to use on its own.

See #1691.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse correct visual attributes for wxSpinCtrl.
Vadim Zeitlin [Tue, 8 Sep 2009 12:23:06 +0000 (12:23 +0000)] 
Use correct visual attributes for wxSpinCtrl.

The default colours for this control are wxTextCtrl-like and not wxButton-like
(which is the default). Override GetDefaultAttributes() to indicate this and
to avoid returning a wrong background from wxControl::DoMSWControlColor() when
just a foreground is set.

See #1691.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix wxLog compilation with wxUSE_THREADS==0.
Vadim Zeitlin [Tue, 8 Sep 2009 11:21:45 +0000 (11:21 +0000)] 
Fix wxLog compilation with wxUSE_THREADS==0.

Define WX_DEFINE_GLOBAL_VAR macro when wxUSE_THREADS==0 too, it is used for
components level hash map in any case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAlways use 32bpp image lists.
Vadim Zeitlin [Mon, 7 Sep 2009 23:00:29 +0000 (23:00 +0000)] 
Always use 32bpp image lists.

Using 32bpp image lists (ILC_COLOR32) is required as we need to be able to put
32bpp bitmaps in them and results in better (albeit still broken, see #9050)
display when the display depth is < 32.

This change was tested under Windows 2000, 2003 and Vista in 8 (Win2k-only),
16 and 32bpp display depth modes.

Closes #11031.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoShow the order in which different event handlers are called.
Vadim Zeitlin [Mon, 7 Sep 2009 23:00:21 +0000 (23:00 +0000)] 
Show the order in which different event handlers are called.

Update the event sample to define (as) many (as possible) event handlers for a
test button and log messages in all of the handlers to leave a trace of the
order in which they were executed.

Add a pointer to this feature of the event sample to the events overview.

Closes #11156.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix bug with parsing concatenated switches in wxCmdLineParser.
Vadim Zeitlin [Mon, 7 Sep 2009 23:00:05 +0000 (23:00 +0000)] 
Fix bug with parsing concatenated switches in wxCmdLineParser.

The constructs such as "-abcd" were not parsed correctly, i.e. the same as "-a
-b -c -d" because the code tried to parse a non-existent option "abcd" even if
it was supposed to not do this -- fix this.

Closes #11180.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoremoved superfluous ;
Jouk Jansen [Mon, 7 Sep 2009 13:50:04 +0000 (13:50 +0000)] 
removed superfluous ;

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agofixed typo : wxDEPRECTED -> wxDEPRECATED
Jouk Jansen [Mon, 7 Sep 2009 12:14:21 +0000 (12:14 +0000)] 
fixed typo : wxDEPRECTED -> wxDEPRECATED

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoRecognize the buddy text control as part of wxSpinCtrl.
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:25 +0000 (14:31 +0000)] 
Recognize the buddy text control as part of wxSpinCtrl.

This allows the code in wxWindowMSW::HandleCtlColor() to find the correct
control when handling the messages from the buddy control and hence setting
the colours for wxSpinCtrl works after this change.

Closes #1691.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCompilation fix after wxTextEntry::SetMargins() changes.
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:17 +0000 (14:31 +0000)] 
Compilation fix after wxTextEntry::SetMargins() changes.

We need to include wx/gdicmn.h to define wxPoint which is now used in
wx/textentry.h, it is not necessarily already included and in fact compilation
was broken in PCH-less build.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse SYSTEMTIME instead of DOS time when converting to/from VARIANTS.
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:10 +0000 (14:31 +0000)] 
Use SYSTEMTIME instead of DOS time when converting to/from VARIANTS.

SYSTEMTIME has a much larger range than DOS time and a much better precision
(1ms instead of 2s) as well.

Closes #11177.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoTake time into account in wxDateTime <-> SYSTEMTIME conversion.
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:01 +0000 (14:31 +0000)] 
Take time into account in wxDateTime <-> SYSTEMTIME conversion.

wxDateTime::SetFromMSWSysTime() and GetAsMSWSysTime() worked with the date
part of SYSTEMTIME only, do use time part as well now.

Closes #11176.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDo not allow multiple selection when dragging in the 'value' column
Jaakko Salli [Sun, 6 Sep 2009 08:35:05 +0000 (08:35 +0000)] 
Do not allow multiple selection when dragging in the 'value' column

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFixed property iterator crash when iterating through 'non-interesting' properties...
Jaakko Salli [Sun, 6 Sep 2009 07:53:53 +0000 (07:53 +0000)] 
Fixed property iterator crash when iterating through 'non-interesting' properties at the edges of the grid.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded check to allow multiple selection by dragging only if property under mouse...
Jaakko Salli [Sun, 6 Sep 2009 07:51:35 +0000 (07:51 +0000)] 
Added check to allow multiple selection by dragging only if property under mouse was adjacent to a property already in the selection.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoPerform Apple SDK tests for Mac ports only.
Vadim Zeitlin [Sat, 5 Sep 2009 14:24:58 +0000 (14:24 +0000)] 
Perform Apple SDK tests for Mac ports only.

Fix after changes of r61832: SDK checks should be done for Mac ports only as
they are useless under the other systems and break configure because sw_vers
is Mac-only and unsurprisingly using it results in errors under the other
systems:

/usr/local/src/wx/HEAD/configure: line 18215: sw_vers: command not found
checking if C compiler works with SDK/version options... configure: error: no.
Try a different SDK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFixed GtkBorder allocation (hopefully)
Jaakko Salli [Sat, 5 Sep 2009 13:23:03 +0000 (13:23 +0000)] 
Fixed GtkBorder allocation (hopefully)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agowxTextEntry::SetMargins(), GetMargins() - implemented on wxMSW and wxGTK (GTK+ 2...
Jaakko Salli [Sat, 5 Sep 2009 12:39:12 +0000 (12:39 +0000)] 
wxTextEntry::SetMargins(), GetMargins() - implemented on wxMSW and wxGTK (GTK+ 2.10+); also added similar functions into wxComboCtrl, deprecated old indent-functions; wxPropertyGrid modified to use the new functionality

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoClarify the separator native look remark.
Vadim Zeitlin [Sat, 5 Sep 2009 12:29:32 +0000 (12:29 +0000)] 
Clarify the separator native look remark.

Closes #11174.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoIf gcc-4.2+ is specified for compiling OS X Carbon or 10.4 compatilbility is specifie...
Kevin Ollivier [Sat, 5 Sep 2009 00:12:39 +0000 (00:12 +0000)] 
If gcc-4.2+ is specified for compiling OS X Carbon or 10.4 compatilbility is specified, switch to gcc-4.0 to avoid configuration conflicts. Also, do not default to 10.4 compatibility when building OS X Cocoa so that we can get 64-bit builds on Snow Leopard by default.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoEnable debug information in release builds for msvc makefiles too.
Vadim Zeitlin [Fri, 4 Sep 2009 16:21:05 +0000 (16:21 +0000)] 
Enable debug information in release builds for msvc makefiles too.

Debug information was enabled for release builds for MSVC project files but
not the makefiles which was inconsistent, correct this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoImplement wxSTAY_ON_TOP for wxMessageDialog in wxGTK.
Vadim Zeitlin [Fri, 4 Sep 2009 16:20:57 +0000 (16:20 +0000)] 
Implement wxSTAY_ON_TOP for wxMessageDialog in wxGTK.

Call gtk_window_set_keep_above() to force the message dialog to be above the
other windows (some WMs do this by default anyhow but not all).

Closes #11163.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDocument wxFileName::SetPath().
Vadim Zeitlin [Fri, 4 Sep 2009 16:20:49 +0000 (16:20 +0000)] 
Document wxFileName::SetPath().

Closes #11162.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix regression with logging messages during wxApp initialization.
Vadim Zeitlin [Fri, 4 Sep 2009 00:27:51 +0000 (00:27 +0000)] 
Fix regression with logging messages during wxApp initialization.

Changes in r61450 broke logging of the messages for errors occurring during
wxApp initialization, such as the message about the failure to establish
connection to the X server. Instead of being shown on stderr, wxLogGui was
used resulting in a crash. Creating wxLogOutputBest in wxLog code before
wxTheApp creation was not enough as this error occurred after wxTheApp
creation -- but before it became usable.

Fix this by explicitly asking wxLog to instantiate a safe log target in
DoCommonPreInit() if the user hadn't set up his own yet and using it until the
GUI is fully initialized.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoTweak the default wxApp::GetAppDisplayName() logic.
Vadim Zeitlin [Thu, 3 Sep 2009 11:38:31 +0000 (11:38 +0000)] 
Tweak the default wxApp::GetAppDisplayName() logic.

Don't capitalize the app name if it had been explicitly set with SetAppName()
as this can result in unexpectedly wrong value. Do capitalize the program name
which is used as app name by default and don't store the program name in
m_appName to be able to distinguish between the two cases.

Closes #11165.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoReact to errors on socket correctly when using epoll().
Vadim Zeitlin [Thu, 3 Sep 2009 00:24:21 +0000 (00:24 +0000)] 
React to errors on socket correctly when using epoll().

Even though the socket is not registered for wxFDIO_EXCEPTION events,
wxEpollDispatcher will currently generate them anyhow so we shouldn't assert
if wxSocketImplUnix::OnExceptionWaiting() is called.

Instead, notify the socket about the connection loss if this happens.

Closes #11085.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoClarify the priority rules for static and dynamic handlers.
Vadim Zeitlin [Thu, 3 Sep 2009 00:24:14 +0000 (00:24 +0000)] 
Clarify the priority rules for static and dynamic handlers.

See #11156.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoNormalize property label editor margins on wxMSW
Jaakko Salli [Tue, 1 Sep 2009 14:44:39 +0000 (14:44 +0000)] 
Normalize property label editor margins on wxMSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoOnly respect property's wxPG_PROP_READONLY flag for the 'value' column
Jaakko Salli [Tue, 1 Sep 2009 14:11:01 +0000 (14:11 +0000)] 
Only respect property's wxPG_PROP_READONLY flag for the 'value' column

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded 'bool editable' argument to wxPropertyGrid::MakeColumnEditable()
Jaakko Salli [Tue, 1 Sep 2009 13:54:41 +0000 (13:54 +0000)] 
Added 'bool editable' argument to wxPropertyGrid::MakeColumnEditable()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoRemoved some old code that generated warnings on some compilers
Jaakko Salli [Tue, 1 Sep 2009 13:20:21 +0000 (13:20 +0000)] 
Removed some old code that generated warnings on some compilers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFixed a severe crash bug
Jaakko Salli [Tue, 1 Sep 2009 13:13:58 +0000 (13:13 +0000)] 
Fixed a severe crash bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCorrectly determine best wxPropertyGrid width.
Vadim Zeitlin [Mon, 31 Aug 2009 21:28:25 +0000 (21:28 +0000)] 
Correctly determine best wxPropertyGrid width.

Improve wxPropertyGrid::DoGetBestSize() to correctly determine the window
width by using the sum of columns widths.

Also correct wxPropertyGridPageState::GetColumnFitWidth() to account for the
bitmaps.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAvoid spurious uninitialized variable warning.
Vadim Zeitlin [Mon, 31 Aug 2009 00:05:29 +0000 (00:05 +0000)] 
Avoid spurious uninitialized variable warning.

Last change introduced a new warning in optimized g++ build, fix it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCorrect wxImage::Size() again; add unit tests for it.
Vadim Zeitlin [Sun, 30 Aug 2009 21:43:11 +0000 (21:43 +0000)] 
Correct wxImage::Size() again; add unit tests for it.

wxImage::Size() didn't handle the paste position correctly.

Closes #7874.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdd support for bilinear resize algorithm to wxImage.
Vadim Zeitlin [Sun, 30 Aug 2009 21:11:37 +0000 (21:11 +0000)] 
Add support for bilinear resize algorithm to wxImage.

Add wxIMAGE_QUALITY_BILINEAR in addition to the existing wxIMAGE_QUALITY_BICUBIC,
it is supposed to be much faster yet yield almost the same results.

Closes #11034.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse correct font instead of DEFAULT_GUI_FONT.
Vadim Zeitlin [Sun, 30 Aug 2009 20:42:46 +0000 (20:42 +0000)] 
Use correct font instead of DEFAULT_GUI_FONT.

DEFAULT_GUI_FONT is a misnomer, not only is it not a default (and never was)
but it shouldn't be used at all. Instead use lfMessageFont from the
NONCLIENTMETRICS structure as it seems to correspond to the font used by
the native controls under 2000, XP and Vista and respects Vista global DPI
setting unlike DEFAULT_GUI_FONT.

Closes #11008.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix buffer overflow in wxURLDataObject.
Vadim Zeitlin [Sun, 30 Aug 2009 17:25:42 +0000 (17:25 +0000)] 
Fix buffer overflow in wxURLDataObject.

The code in CFSTR_SHELLURLDataObject::GetDataHere() was confused by
ANSI/Unicode and ended up overwriting output buffer because of it. Moreover,
this function was actually completely unnecessary as the base class version
did work correctly.

Closes #11102 (thanks to Tim Kosse).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix off by one errors in wxURLDataObject.
Vadim Zeitlin [Sun, 30 Aug 2009 17:25:28 +0000 (17:25 +0000)] 
Fix off by one errors in wxURLDataObject.

wxTextDataObject::SetData() adds the terminating NUL automatically so there is
no need to add it to the length when calling it from wxURLDataObject::SetURL().

This change is necessary to fix the unit test in the upcoming fix for #11102.

See #11102.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoOutput the extracted number from wxString::ToXXX() even if it returns false.
Vadim Zeitlin [Sun, 30 Aug 2009 17:25:19 +0000 (17:25 +0000)] 
Output the extracted number from wxString::ToXXX() even if it returns false.

After the changes in r50710 wxString numeric conversion functions didn't
update their output parameter any more if the conversion failed because not
entire string was converted. This was incompatible with the old behaviour
which some existing code did rely on, so restore it and now always return the
number which was extracted from the beginning of the string if we found
anything at all, even if the function returns false.

Add unit test for the correct behaviour and updated the documentation.

Closes #11126.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse GetBestSize() rather than DoGetBestSize().
Vadim Zeitlin [Sun, 30 Aug 2009 17:25:02 +0000 (17:25 +0000)] 
Use GetBestSize() rather than DoGetBestSize().

Call GetBestSize() from wxWindowMSW::DoSetSize() so that it works correctly
for the classes which only override DoGetBestClientSize() and not
DoGetBestSize() itself, such as wxStaticText.

Closes #11096.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix selection events generation in multi-select wxTreeCtrl.
Vadim Zeitlin [Sun, 30 Aug 2009 17:24:53 +0000 (17:24 +0000)] 
Fix selection events generation in multi-select wxTreeCtrl.

Only deselect the items when the mouse is released if really necessary: add a
flag indicating when it is instead of trying to deduce it in the mouse up
handler.

Closes #11099 (thanks to Jonathan Liu).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775