wxWidgets.git
10 years agoNo changes, just fix a typo in a comment in docview event handling code.
Vadim Zeitlin [Wed, 2 Oct 2013 23:32:00 +0000 (23:32 +0000)] 
No changes, just fix a typo in a comment in docview event handling code.

This code is non-trivial enough without confusingly calling a view "new".

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

10 years agoA couple of fixes to Brazilian Portuguese translations from Felipe.
Vadim Zeitlin [Wed, 2 Oct 2013 22:55:08 +0000 (22:55 +0000)] 
A couple of fixes to Brazilian Portuguese translations from Felipe.

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

10 years agoAdd wxActivateEvent::GetActivationReason().
Vadim Zeitlin [Wed, 2 Oct 2013 16:25:04 +0000 (16:25 +0000)] 
Add wxActivateEvent::GetActivationReason().

This method is implemented for wxMSW-only currently and allows to check
whether the window is being activated by a mouse click or in some other way
there.

Closes #15516.

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

10 years agoFix incorrect event handler functions casts in wxRibbonPanel code.
Vadim Zeitlin [Wed, 2 Oct 2013 16:24:59 +0000 (16:24 +0000)] 
Fix incorrect event handler functions casts in wxRibbonPanel code.

Use wxMouseEventHandler() instead of (wrongly) casting a method taking
wxMouseEvent to wxEvent-taking wxObjectEventFunction.

Closes #15550.

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

10 years agoAdd more checks for Intel compiler.
Vadim Zeitlin [Tue, 1 Oct 2013 23:04:51 +0000 (23:04 +0000)] 
Add more checks for Intel compiler.

This should have been part of r74888.

Closes #15359.

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

10 years agoRemove support for Gnome printing from wxGTK.
Vadim Zeitlin [Tue, 1 Oct 2013 17:09:02 +0000 (17:09 +0000)] 
Remove support for Gnome printing from wxGTK.

It was replaced by GTK+ printing several years ago and is almost never used
any longer anyhow, so any problems in this code (and there are some) would
never be found and fixed.

Also update the message catalogs to avoid having the strings not used any
more, as they were only used in Gnome printing code.

Closes #15517.

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

10 years agoGo back to using a fixed value of 3 for lines/columns per action for mouse wheel...
Paul Cornett [Tue, 1 Oct 2013 16:33:30 +0000 (16:33 +0000)] 
Go back to using a fixed value of 3 for lines/columns per action for mouse wheel event.
The native value is too large. Reverts the effect of r74805. Closes #15527

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

10 years agoFurther refine of #15226: wxRichTextCtrl: Implement setting properties with undo...
Julian Smart [Tue, 1 Oct 2013 16:33:24 +0000 (16:33 +0000)] 
Further refine of #15226: wxRichTextCtrl: Implement setting properties with undo for objects e.g. wxRichTextTable (dghart)

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

10 years agoInstall wxrc with proper library dependencies under OS X.
Vadim Zeitlin [Tue, 1 Oct 2013 16:08:55 +0000 (16:08 +0000)] 
Install wxrc with proper library dependencies under OS X.

In addition to changing the libraries themselves to point to the dependencies
in their installed location, we also need to do the same thing for wxrc when
installing it under OS X, otherwise it wouldn't run once the libraries are not
available in their original location any more.

Closes #15452.

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

10 years agoRemove unused debian subdirectory.
Vadim Zeitlin [Tue, 1 Oct 2013 16:08:50 +0000 (16:08 +0000)] 
Remove unused debian subdirectory.

All Debian-based distributions use their own files for creating their
packages, so get rid of our own "debian" subdirectory to avoid confusing
people and to not have to maintain them any more.

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

10 years agoRemove RPM .spec files from the repository.
Vadim Zeitlin [Tue, 1 Oct 2013 16:08:44 +0000 (16:08 +0000)] 
Remove RPM .spec files from the repository.

They were not really used for anything but still had to be updated and
maintained.

Get rid of them as all RPM-based distributions use their own spec files
anyhow.

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

10 years agoRemove obsolete CodeWarrior-related batch files.
Vadim Zeitlin [Tue, 1 Oct 2013 16:08:39 +0000 (16:08 +0000)] 
Remove obsolete CodeWarrior-related batch files.

This compiler is not supported (and doesn't even exist, in fact) any more and
these files should have been removed in r59493.

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

10 years agoRemove obsolete VisualAge-related files.
Vadim Zeitlin [Tue, 1 Oct 2013 16:08:36 +0000 (16:08 +0000)] 
Remove obsolete VisualAge-related files.

These were used under OS/2 circa 2000.

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

10 years agoDefine _CRT_NONSTDC_NO_WARNINGS for zlib compilation with MSVC.
Vadim Zeitlin [Tue, 1 Oct 2013 16:08:33 +0000 (16:08 +0000)] 
Define _CRT_NONSTDC_NO_WARNINGS for zlib compilation with MSVC.

This avoids a bunch of harmless but annoying warnings due to the use of POSIX
functions in zlib code.

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

10 years agoUpgrade bundled zlib to 1.2.8.
Vadim Zeitlin [Tue, 1 Oct 2013 16:08:25 +0000 (16:08 +0000)] 
Upgrade bundled zlib to 1.2.8.

No real changes from wxWidgets point of view.

Closes #15314.

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

10 years agoApplied #15226 wxRichTextCtrl: Implement setting properties with undo for objects...
Julian Smart [Tue, 1 Oct 2013 15:47:49 +0000 (15:47 +0000)] 
Applied #15226 wxRichTextCtrl: Implement setting properties with undo for objects e.g. wxRichTextTable (dghart)

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

10 years agoExclude zlib 3rd party sources from our checks too.
Vadim Zeitlin [Tue, 1 Oct 2013 15:25:00 +0000 (15:25 +0000)] 
Exclude zlib 3rd party sources from our checks too.

zlib ChangeLog file is not in UTF-8 in 1.2.8 and so doesn't pass our checks.

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

10 years agoAdd a few missing appearance screenshots for the manual.
Vadim Zeitlin [Tue, 1 Oct 2013 13:03:34 +0000 (13:03 +0000)] 
Add a few missing appearance screenshots for the manual.

This fixes the last remaining Doxygen warnings.

Closes #15346.

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

10 years agoUse generic appearance for wxSimpleHtmlListBox.
Vadim Zeitlin [Tue, 1 Oct 2013 13:03:28 +0000 (13:03 +0000)] 
Use generic appearance for wxSimpleHtmlListBox.

It doesn't make much sense to have platform-specific screenshots for this
generic control.

See #15346.

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

10 years agoMake @genericAppearance Doxygen macro consistent with @appearance.
Vadim Zeitlin [Tue, 1 Oct 2013 13:03:25 +0000 (13:03 +0000)] 
Make @genericAppearance Doxygen macro consistent with @appearance.

Append ".png" extension automatically, just as @appearance does.

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

10 years agoUse wxListCtrl screenshots for wxListView as well.
Vadim Zeitlin [Tue, 1 Oct 2013 13:03:20 +0000 (13:03 +0000)] 
Use wxListCtrl screenshots for wxListView as well.

wxListView appears identically to wxListCtrl in report mode and the existing
wxListCtrl screenshots show it exactly in this mode, so it doesn't make much
sense to duplicate them.

This also avoids Doxygen warnings about missing wxListView screenshots for
MSW and OSX.

See #15346.

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

10 years agoDocument domain parameter of wxTranslations::GetTranslatedString().
Vadim Zeitlin [Tue, 1 Oct 2013 13:03:15 +0000 (13:03 +0000)] 
Document domain parameter of wxTranslations::GetTranslatedString().

This parameter needs to be documented, if only to avoid a Doxygen warning.

See #15346.

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

10 years agoFix wrong references to wxImageList description in XRC format docs.
Vadim Zeitlin [Tue, 1 Oct 2013 13:03:10 +0000 (13:03 +0000)] 
Fix wrong references to wxImageList description in XRC format docs.

xrc_wximagelist reference didn't exist and resulted in Doxygen errors.

See #15346.

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

10 years agoDestroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
Václav Slavík [Tue, 1 Oct 2013 12:19:56 +0000 (12:19 +0000)] 
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.

Previously, the functor was kept in a helper event handler that was bound to
wxEVT_WINDOW_MODAL_DIALOG_CLOSED and only marked as already called, but never
unbound. Consequently, the functor object remained allocated for as long as the
event table existed and was only freed with the dialog instance.

Change the logic to destroy the functor object as soon as it was called and is
no longer needed for anything.

This is particularly important when used with C++11 lambdas that capture the
dialog in a wxWindowPtr pointer, because the pointer would be retained forever
otherwise.

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

10 years agoFix crash when auto-sizing a wxDataViewCtrl column.
Vadim Zeitlin [Mon, 30 Sep 2013 23:49:26 +0000 (23:49 +0000)] 
Fix crash when auto-sizing a wxDataViewCtrl column.

The code was confused about the difference between the model and view columns
indices and incorrectly used the former as the latter, which could result in
an out of bound array access.

Closes #15420.

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

10 years agoDo not define __VISUALC__ for Intel C++ compiler under Windows.
Vadim Zeitlin [Mon, 30 Sep 2013 23:49:21 +0000 (23:49 +0000)] 
Do not define __VISUALC__ for Intel C++ compiler under Windows.

This is confusing and makes it more difficult to test for the "real" MSVC,
test for __INTELC__ explicitly wherever needed instead.

Also document __INTELC__ in our list of compilers.

Closes #15359.

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

10 years agoImprove drawing of the tree item buttons in the generic renderer.
Vadim Zeitlin [Mon, 30 Sep 2013 23:49:15 +0000 (23:49 +0000)] 
Improve drawing of the tree item buttons in the generic renderer.

Draw the "-" and "+" signs always properly centered.

Closes #15526.

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

10 years agoMinGW-w64 provides isfinite() in both 32 and 64 bit builds.
Vadim Zeitlin [Mon, 30 Sep 2013 23:49:05 +0000 (23:49 +0000)] 
MinGW-w64 provides isfinite() in both 32 and 64 bit builds.

So use __MINGW64_TOOLCHAIN__ to test for it and not __MINGW64__, which is only
defined in 64 bits.

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

10 years agoDefine __MINGW64_TOOLCHAIN__ and __MINGW32_TOOLCHAIN__ symbols.
Vadim Zeitlin [Mon, 30 Sep 2013 23:49:02 +0000 (23:49 +0000)] 
Define __MINGW64_TOOLCHAIN__ and __MINGW32_TOOLCHAIN__ symbols.

__MINGW64_TOOLCHAIN__ macro is more readable and shorter than the standard
predefined __MINGW64_VERSION_MAJOR and __MINGW32_TOOLCHAIN__ is defined for
the symmetry and also because it will make many tests simpler as we often
need to test not so much for MinGW-w64 for its own sake but rather to disable
the workarounds for MinGW32 when using it.

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

10 years agoPolish translations update from Grzegorz Zlotowicz.
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:58 +0000 (23:48 +0000)] 
Polish translations update from Grzegorz Zlotowicz.

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

10 years agoFix problem with COMDLG_FILTERSPEC declaration with MinGW-w64 4.8.
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:55 +0000 (23:48 +0000)] 
Fix problem with COMDLG_FILTERSPEC declaration with MinGW-w64 4.8.

Forward declaring as a struct a symbol previously defined as a typedef results
in an error when using MinGW-w64 4.8.1, so forward declare the struct itself
instead.

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

10 years agoDon't check for tr1/type_traits in configure if type_traits was found.
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:52 +0000 (23:48 +0000)] 
Don't check for tr1/type_traits in configure if type_traits was found.

This is just an optimization: don't waste time checking for tr1 header if we
already found the standard one that we're going to use if it's available.

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

10 years agoAvoid using wxHtmlTag::HasParam() unnecessarily.
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:46 +0000 (23:48 +0000)] 
Avoid using wxHtmlTag::HasParam() unnecessarily.

Use GetParamAsXXX() accessors instead as they combine the calls to HasParam()
and GetParam() and make the code shorter and avoid the duplication of the tag
name.

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

10 years agoStore HTML "id" parameter value in wxHtmlCell.
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:41 +0000 (23:48 +0000)] 
Store HTML "id" parameter value in wxHtmlCell.

Pass on the value of the ID to the cell object when adding a new cell.

Closes #15535.

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

10 years agoAdd wxHtmlTag::GetParamAsString() convenience method.
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:38 +0000 (23:48 +0000)] 
Add wxHtmlTag::GetParamAsString() convenience method.

This is more convenient to use than HasParam() + GetParam() and also slightly
more efficient as we search for the tag name only once.

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

10 years agoNo changes, just use "@since 3.0" consistently in the documentation.
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:34 +0000 (23:48 +0000)] 
No changes, just use "@since 3.0" consistently in the documentation.

This was the only place where "@since 3.0.0" was used, replace it with just
"3.0" for consistency with all the others.

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

10 years agoBrazilian Portuguese translations update from Felipe.
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:31 +0000 (23:48 +0000)] 
Brazilian Portuguese translations update from Felipe.

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

10 years agoChinese translations update from Jiawei Huang.
Vadim Zeitlin [Mon, 30 Sep 2013 23:48:28 +0000 (23:48 +0000)] 
Chinese translations update from Jiawei Huang.

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

10 years agoCompilation fix for !wxUSE_OWNER_DRAWN.
Václav Slavík [Mon, 30 Sep 2013 17:12:24 +0000 (17:12 +0000)] 
Compilation fix for !wxUSE_OWNER_DRAWN.

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

10 years agoApplied #15226 with modifications: wxRichTextCtrl: Implement setting properties with...
Julian Smart [Sun, 29 Sep 2013 16:08:03 +0000 (16:08 +0000)] 
Applied #15226 with modifications: wxRichTextCtrl: Implement setting properties with undo for objects e.g. wxRichTextTable (dghart)

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

10 years agoDon't redraw borders for cells that are hidden - fixes drawing glitch in sample
Julian Smart [Sun, 29 Sep 2013 14:01:16 +0000 (14:01 +0000)] 
Don't redraw borders for cells that are hidden - fixes drawing glitch in sample

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

10 years agoAdded wxRichTextTableBlock class to help with table UI operations
Julian Smart [Sun, 29 Sep 2013 13:35:58 +0000 (13:35 +0000)] 
Added wxRichTextTableBlock class to help with table UI operations

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

10 years agoFixed capitalisation
Julian Smart [Sun, 29 Sep 2013 13:11:01 +0000 (13:11 +0000)] 
Fixed capitalisation

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

10 years agoApplied patch #15540: wxRichTextTable: crashes due to an invalid focus object (dghart)
Julian Smart [Sun, 29 Sep 2013 12:58:30 +0000 (12:58 +0000)] 
Applied patch #15540: wxRichTextTable: crashes due to an invalid focus object (dghart)

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

10 years agoApplied #15539: wxRichTextCtrl: demonstrate adding and deleting table rows and column...
Julian Smart [Sun, 29 Sep 2013 12:14:19 +0000 (12:14 +0000)] 
Applied #15539: wxRichTextCtrl: demonstrate adding and deleting table rows and columns in the richtext sample (dghart)

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

10 years agowxRTC: save and load the 'shown' status in case there's a situation where layout...
Julian Smart [Sun, 29 Sep 2013 12:06:17 +0000 (12:06 +0000)] 
wxRTC: save and load the 'shown' status in case there's a situation where layout doesn't restore it

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

10 years agowxRTC: fixed guidelines overwriting adjacent cell borders; corrected capitalisation...
Julian Smart [Fri, 27 Sep 2013 13:36:46 +0000 (13:36 +0000)] 
wxRTC: fixed guidelines overwriting adjacent cell borders; corrected capitalisation in command labels; now sends text update event when an object is changed.

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

10 years agoMisc XRC format docs corrections.
Václav Slavík [Thu, 26 Sep 2013 12:55:23 +0000 (12:55 +0000)] 
Misc XRC format docs corrections.

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

10 years agoXRC: make wxStaticText's wrap property a dimension.
Václav Slavík [Thu, 26 Sep 2013 12:55:20 +0000 (12:55 +0000)] 
XRC: make wxStaticText's wrap property a dimension.

Parse it as dimension type (including dlg units) and not just integer.
This is backward compatible.

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

10 years agoXRC: make wxSplitterWindow's sashpos and minpanesize dimensions.
Václav Slavík [Thu, 26 Sep 2013 12:55:17 +0000 (12:55 +0000)] 
XRC: make wxSplitterWindow's sashpos and minpanesize dimensions.

Parse them as dimension type (including dlg units) and not just integers. This is backward compatible.

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

10 years agoCorrected disabling of controls in cell editor.
Julian Smart [Thu, 26 Sep 2013 10:00:50 +0000 (10:00 +0000)] 
Corrected disabling of controls in cell editor.

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

10 years agoalways use hw-accel, fixes #15536, applied with thanks
Stefan Csomor [Thu, 26 Sep 2013 06:31:20 +0000 (06:31 +0000)] 
always use hw-accel, fixes #15536, applied with thanks

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

10 years agoAdded wxRichTextAction::SetOldAndNewObjects for clarity when submitting a wxRICHTEXT_...
Julian Smart [Tue, 24 Sep 2013 12:05:54 +0000 (12:05 +0000)] 
Added wxRichTextAction::SetOldAndNewObjects for clarity when submitting a wxRICHTEXT_CHANGE_OBJECT command.

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

10 years agoavoid calling GetDefaultSize() twice
Paul Cornett [Tue, 24 Sep 2013 05:50:09 +0000 (05:50 +0000)] 
avoid calling GetDefaultSize() twice

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

10 years agoMake wxRichTextRectArray usable by other parts of wxRTC
Julian Smart [Mon, 23 Sep 2013 09:07:16 +0000 (09:07 +0000)] 
Make wxRichTextRectArray usable by other parts of wxRTC

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

10 years agoPartial fix for #15196: wxRichTextCell caret issues (dghart)
Julian Smart [Sun, 22 Sep 2013 20:34:16 +0000 (20:34 +0000)] 
Partial fix for #15196: wxRichTextCell caret issues (dghart)

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

10 years agoAllow absent checkbox when transferring dimension data
Julian Smart [Sun, 22 Sep 2013 20:22:19 +0000 (20:22 +0000)] 
Allow absent checkbox when transferring dimension data

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

10 years agoMake public headers compatible with Objective-C++ with ARC.
Václav Slavík [Sat, 21 Sep 2013 10:11:08 +0000 (10:11 +0000)] 
Make public headers compatible with Objective-C++ with ARC.

OSXGetViewOrWindow() virtual methods were defined in headers and were casting
NSView*/NSWindow* to void*, which the compiler complains about with ARC
enabled. Rather than writing conditional code in the header, move the
implementations into .cpp files. They were virtual anyway, so this is no less
efficient, and doesn't leave any problematic code in public headers.

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

10 years agoRevert "using #ifdef wxABORT_ON_CONFIG_ERROR not just #if as elsewhere"
Václav Slavík [Sat, 21 Sep 2013 09:28:47 +0000 (09:28 +0000)] 
Revert "using #ifdef wxABORT_ON_CONFIG_ERROR not just #if as elsewhere"

This reverts commit r74656, because it breaks initialization order by
calling OnInit() too late.  See
https://groups.google.com/d/topic/wx-dev/H5vgc2VO7K4/discussion

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

10 years agoAdd virtual ~wxAnyScrollHelperBase() to fix compiler warning.
Václav Slavík [Sat, 21 Sep 2013 09:28:42 +0000 (09:28 +0000)] 
Add virtual ~wxAnyScrollHelperBase() to fix compiler warning.

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

10 years agoFix wxOSX warnings about int-to-void* casts.
Václav Slavík [Sat, 21 Sep 2013 09:28:39 +0000 (09:28 +0000)] 
Fix wxOSX warnings about int-to-void* casts.

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

10 years agoSet missing Language: headers in PO files.
Václav Slavík [Sat, 21 Sep 2013 09:28:34 +0000 (09:28 +0000)] 
Set missing Language: headers in PO files.

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

10 years agoStandardize Project-Id-Version in PO files.
Václav Slavík [Sat, 21 Sep 2013 09:28:25 +0000 (09:28 +0000)] 
Standardize Project-Id-Version in PO files.

Set it to "wxWidgets 3.0". Add where missing.

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

10 years agoTry loading even English translations if provided.
Václav Slavík [Fri, 20 Sep 2013 17:27:59 +0000 (17:27 +0000)] 
Try loading even English translations if provided.

Doing so has negligible cost and can be useful in some situations (e.g.
when using symbolic msgids despite gettext best practices).

Patch by tmsorensen.

Fixes #15522.

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

10 years agofix vertical mouse wheel event rotation value, sign was reversed in r74805
Paul Cornett [Fri, 20 Sep 2013 15:21:25 +0000 (15:21 +0000)] 
fix vertical mouse wheel event rotation value, sign was reversed in r74805
fixes #15524

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

10 years agoAdded setters for table row and column count
Julian Smart [Fri, 20 Sep 2013 11:34:11 +0000 (11:34 +0000)] 
Added setters for table row and column count

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

10 years agoUpdate OpenVMS makefile
Jouk Jansen [Fri, 20 Sep 2013 06:07:23 +0000 (06:07 +0000)] 
Update OpenVMS makefile

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

10 years agoThe alignment controls are now left-aligned if the floating controls are not shown.
Julian Smart [Thu, 19 Sep 2013 18:23:37 +0000 (18:23 +0000)] 
The alignment controls are now left-aligned if the floating controls are not shown.

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

10 years agoCorrections to border placement
Julian Smart [Thu, 19 Sep 2013 13:14:11 +0000 (13:14 +0000)] 
Corrections to border placement

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

10 years agoSecond part of #15224 fix: AddRows, AddColumns (dghart)
Julian Smart [Thu, 19 Sep 2013 11:09:34 +0000 (11:09 +0000)] 
Second part of #15224 fix: AddRows, AddColumns (dghart)

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

10 years agoFix for #15224: wxRichTextTable: Setting a cell's text colour affects subsequent...
Julian Smart [Thu, 19 Sep 2013 08:38:48 +0000 (08:38 +0000)] 
Fix for #15224: wxRichTextTable: Setting a cell's text colour affects subsequent cells (dghart)

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

10 years agoFix for #15520: wxRichTextCtrl: Drawing the selection doesn't respect its container...
Julian Smart [Thu, 19 Sep 2013 07:48:22 +0000 (07:48 +0000)] 
Fix for #15520: wxRichTextCtrl: Drawing the selection doesn't respect its container (dghart)

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

10 years agofix building with WXWIN_COMPATIBILITY_2_8 == 0
Paul Cornett [Thu, 19 Sep 2013 06:16:34 +0000 (06:16 +0000)] 
fix building with WXWIN_COMPATIBILITY_2_8 == 0
wxPG_EX_DISABLE_TLP_TRACKING does nothing since r61779

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

10 years agofix wxSystemSettings::GetColour() for wxGTK3
Paul Cornett [Thu, 19 Sep 2013 05:33:55 +0000 (05:33 +0000)] 
fix wxSystemSettings::GetColour() for wxGTK3
closes #15519

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

10 years agoAdd missing c_str() call to fix wxGTK ANSI+STL build.
Vadim Zeitlin [Wed, 18 Sep 2013 18:02:25 +0000 (18:02 +0000)] 
Add missing c_str() call to fix wxGTK ANSI+STL build.

Closes #15518.

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

10 years agoUse std::isfinite() for wxFinite() for C++11 compilers.
Vadim Zeitlin [Wed, 18 Sep 2013 17:30:30 +0000 (17:30 +0000)] 
Use std::isfinite() for wxFinite() for C++11 compilers.

This should fix compilation with MinGW 4.8.1 cross-compiler in C++11 mode as
it doesn't seem to provide finite() any more then.

Also, only defined wxFinite() and wxIsNaN() for C++, not C. This makes the
checks for __cplusplus >= 201103 simpler and is consistent with how
wxIsSameDouble() and wxRound() were already only defined for C++ (this is also
the source of most of the changes in this diff, viewing it ignoring whitespace
will show the only real changes).

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

10 years agoAdd wxTranslations::GetTranslatedString().
Václav Slavík [Wed, 18 Sep 2013 16:03:31 +0000 (16:03 +0000)] 
Add wxTranslations::GetTranslatedString().

Replace GetString(), which always returns something (possibly the
original string) with GetTranslatedString() that returns either a
pointer to translated string or NULL.

This simplifies the code a bit, all handling of missing translations is
now done in wxGetTranslation().

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

10 years agoRemove unused wxLocale::GetUntranslatedString().
Václav Slavík [Wed, 18 Sep 2013 16:03:28 +0000 (16:03 +0000)] 
Remove unused wxLocale::GetUntranslatedString().

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

10 years agoDeallocate wxThreadSpecificInfo when wxThread ends.
Václav Slavík [Wed, 18 Sep 2013 16:03:25 +0000 (16:03 +0000)] 
Deallocate wxThreadSpecificInfo when wxThread ends.

Cleanup wxThreadSpecificInfo after wxThread::Entry returns to be more
memory efficient.

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

10 years agoMake _() and friends safe to call from any thread.
Václav Slavík [Wed, 18 Sep 2013 16:03:20 +0000 (16:03 +0000)] 
Make _() and friends safe to call from any thread.

The GetUntranslatedString() hack keeps a global copy of all strings, so
that it can return a const reference as wxGetTranslation() return value.
A global wxHashSet instance shared by all threads won't do, even guarded
with a critical section, because it may internally copy values on any
insert and thus invalidate pointers that may still be used on another
thread.

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

10 years agoMake storing non-trivial data in wxThreadSpecificInfo possible.
Václav Slavík [Wed, 18 Sep 2013 16:03:14 +0000 (16:03 +0000)] 
Make storing non-trivial data in wxThreadSpecificInfo possible.

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

10 years agoUpdate vc10 build file versions to 3.0.0.
Steve Lamerton [Wed, 18 Sep 2013 15:12:34 +0000 (15:12 +0000)] 
Update vc10 build file versions to 3.0.0.

See r74781.

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

10 years agoEnsure that the overall table border doesn't get overdrawn by cell borders with a...
Julian Smart [Wed, 18 Sep 2013 08:18:32 +0000 (08:18 +0000)] 
Ensure that the overall table border doesn't get overdrawn by cell borders with a different colour

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

10 years agoFix badly translated wildcard string in German message catalog.
Vadim Zeitlin [Tue, 17 Sep 2013 17:35:54 +0000 (17:35 +0000)] 
Fix badly translated wildcard string in German message catalog.

"*.*" should be "*.*" even in German.

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

10 years agoMore German translations updates from Sebastian Walderich.
Vadim Zeitlin [Tue, 17 Sep 2013 17:35:51 +0000 (17:35 +0000)] 
More German translations updates from Sebastian Walderich.

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

10 years agoFix assorted typos in comments and other non-code.
Vadim Zeitlin [Tue, 17 Sep 2013 15:25:59 +0000 (15:25 +0000)] 
Fix assorted typos in comments and other non-code.

Closes #15509.

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

10 years agoUse mask when drawing bitmaps in generic wxDataViewCtrl.
Vadim Zeitlin [Tue, 17 Sep 2013 15:25:52 +0000 (15:25 +0000)] 
Use mask when drawing bitmaps in generic wxDataViewCtrl.

This allows to have bitmaps with transparent areas in them.

Closes #15510.

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

10 years agoAdd wxDataViewRendererBase::GetEffectiveAlignment() and use it.
Vadim Zeitlin [Tue, 17 Sep 2013 15:25:47 +0000 (15:25 +0000)] 
Add wxDataViewRendererBase::GetEffectiveAlignment() and use it.

This helper method falls back on the alignment of the column if the renderer
alignment is not specified. This is almost always what should be used instead
of GetAlignment() to determine the alignment that really should be used in the
drawing code.

In particular, using GetEffectiveAlignment() in wxDataViewCustomRenderer fixes
the problem with bitmap columns ignoring column alignment for their bitmaps.

Closes #15498.

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

10 years agoremove executable property from non-executable files, closes #15504
Paul Cornett [Mon, 16 Sep 2013 15:47:27 +0000 (15:47 +0000)] 
remove executable property from non-executable files, closes #15504

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

10 years agoFix wrong type information for {v,h}gap in XRC format docs.
Václav Slavík [Mon, 16 Sep 2013 15:15:37 +0000 (15:15 +0000)] 
Fix wrong type information for {v,h}gap in XRC format docs.

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

10 years agoRevert "Make wxMSW stack walking methods work with Unicode identifiers."
Vadim Zeitlin [Sun, 15 Sep 2013 11:57:23 +0000 (11:57 +0000)] 
Revert "Make wxMSW stack walking methods work with Unicode identifiers."

This reverts r74817 because it broke compilation with VC8 and it doesn't seem
obvious to fix this.

See #15138, closes #15500.

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

10 years agoAdd code showing stereo support to the OpenGL cube sample.
Vadim Zeitlin [Sun, 15 Sep 2013 00:16:44 +0000 (00:16 +0000)] 
Add code showing stereo support to the OpenGL cube sample.

Show how WX_GL_STEREO attribute can be used, if available.

See #15434.

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

10 years agoShow full screen windows with WS_POPUP style in wxMSW.
Vadim Zeitlin [Sun, 15 Sep 2013 00:16:39 +0000 (00:16 +0000)] 
Show full screen windows with WS_POPUP style in wxMSW.

This doesn't make any difference for most windows but fixes a problem with
wxGLCanvas windows using stereo support of Nvidia cards and generally it does
make sense to use WS_POPUP with full screen windows as they are definitely not
overlapped, so just use this style unconditionally.

Closes #15434.

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

10 years agoMake wxMSW stack walking methods work with Unicode identifiers.
Vadim Zeitlin [Sun, 15 Sep 2013 00:16:34 +0000 (00:16 +0000)] 
Make wxMSW stack walking methods work with Unicode identifiers.

This allows to show the stack properly for e.g. Japanese programs.

Closes #15138.

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

10 years agoDisable handling of wxEVT_MOUSEWHEEL in wxVarScrollHelperEvtHandler in wxGTK.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:26 +0000 (00:15 +0000)] 
Disable handling of wxEVT_MOUSEWHEEL in wxVarScrollHelperEvtHandler in wxGTK.

Just for consistency with wxScrollHelperBase, not really sure what problem
exactly does this solve.

See #15357.

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

10 years agoMake default keyboard handling available in wxVarScrollHelperEvtHandler too.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:17 +0000 (00:15 +0000)] 
Make default keyboard handling available in wxVarScrollHelperEvtHandler too.

Factor out the keyboard handling code in wxAnyScrollHelperBase allowing its
reuse in wxVarScrollHelperEvtHandler.

Now wxVarScrollHelperBase handles cursor keys in a sane way by default
too and also allows disabling their handling, just as wxScrolledWindow.

See #15357.

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

10 years agoPropagate the event handling fixes to wxVarScrollHelperBase.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:12 +0000 (00:15 +0000)] 
Propagate the event handling fixes to wxVarScrollHelperBase.

Merge the fixes to wxScrollHelperBase::ProcessEvent() of r64358, r64370,
r64464, r72939 and possibly a few more in wxVarScrollHelperBase to fix its
behaviour too, as it wasn't generating the correct events any longer.

Unfortunately the fix right now is to physically copy the code from one class
to the other. This should be avoided, of course, and a more in depth
refactoring should be done to move the code common to both classes into
wxAnyScrollHelperBase after 3.0 release. But for now continuing to duplicate
code is better than not having a working wxVarScrollHelperBase.

See #15357.

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

10 years agoAdd wxAnyScrollHelperBase to reduce code duplication in wxVarScrollHelperBase.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:07 +0000 (00:15 +0000)] 
Add wxAnyScrollHelperBase to reduce code duplication in wxVarScrollHelperBase.

This is just a small refactoring to move some trivially common parts of
wxScrollHelperBase and wxVarScrollHelperBase in a new common base class.
This will make it possible to apply other corrections to wxVarScrollHelperBase
without having to physically duplicate the code from wxScrollHelperBase in it.

See #15357.

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

10 years agoUse wxGetTranslation() instead of _() in the public headers.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:02 +0000 (00:15 +0000)] 
Use wxGetTranslation() instead of _() in the public headers.

This allows the code in them to compile even when WXINTL_NO_GETTEXT_MACRO is
defined.

Closes #15443.

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

10 years agoFix flickering of wxStaticBox background in wxMSW.
Vadim Zeitlin [Sun, 15 Sep 2013 00:14:56 +0000 (00:14 +0000)] 
Fix flickering of wxStaticBox background in wxMSW.

First of all, don't erase background in WM_ERASEBKGND at all if we erase it
anyhow in WM_PAINT, this is totally useless and is what wxBG_STYLE_PAINT is for.

Second, clip out not only the siblings of the static box but also its children
when erasing the background to avoid painting over the controls created as the
box children, which is the preferred way to create them now.

Closes #15150.

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