]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
11 years agoFix the style value in wxWizard::Create() documentation.
Vadim Zeitlin [Sun, 31 Mar 2013 01:12:08 +0000 (01:12 +0000)] 
Fix the style value in wxWizard::Create() documentation.

Somehow the raw value was used instead of the symbolic constant.

Closes #15130.

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

11 years agoFix the header to be included in wxStringTokenizer documentation.
Vadim Zeitlin [Sun, 31 Mar 2013 01:12:04 +0000 (01:12 +0000)] 
Fix the header to be included in wxStringTokenizer documentation.

See #15130.

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

11 years agoDocument wxDateTime arithmetic operators.
Vadim Zeitlin [Sun, 31 Mar 2013 01:12:00 +0000 (01:12 +0000)] 
Document wxDateTime arithmetic operators.

wxDateTime::operator+() and operator-() were not documented, do it now.

Also fix the return value of wxDateTime::Add().

See #15130.

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

11 years agoDocument wxDataView{List,Tree}Ctrl as only available since 2.9.0.
Vadim Zeitlin [Sun, 31 Mar 2013 01:11:56 +0000 (01:11 +0000)] 
Document wxDataView{List,Tree}Ctrl as only available since 2.9.0.

See #15130.

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

11 years agoRemove wx{File,Dir}PickerCtrl::CheckPath() declaration.
Vadim Zeitlin [Sun, 31 Mar 2013 01:11:53 +0000 (01:11 +0000)] 
Remove wx{File,Dir}PickerCtrl::CheckPath() declaration.

This function wasn't defined, so don't declare it neither.

This should have been part of r72475.

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

11 years agoRemove remaining occurrences of wxUSE_XPM_IN_MSW.
Vadim Zeitlin [Sun, 31 Mar 2013 01:11:50 +0000 (01:11 +0000)] 
Remove remaining occurrences of wxUSE_XPM_IN_MSW.

This symbol is not used since a very long time as XPM support is now always
available in wxMSW and most of its occurrences were removed almost 10 years
ago, just remove the remaining ones too.

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

11 years agoAdd a comment with links to proper command line parsing rules.
Vadim Zeitlin [Sun, 31 Mar 2013 01:11:47 +0000 (01:11 +0000)] 
Add a comment with links to proper command line parsing rules.

No real changes, just added a comment with links to the descriptions of the
correct rules that we should use in ConvertStringToArgs().

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

11 years agoFix program not shutting down when using Ubuntu app menu.
Vadim Zeitlin [Fri, 29 Mar 2013 19:53:26 +0000 (19:53 +0000)] 
Fix program not shutting down when using Ubuntu app menu.

Ensure that an idle event is generated after a menu event even when the latter
comes, via DBUS, from the out of process app menu and not from a real GTK menu.

Closes #15122.

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

11 years agoMention the relationship of wxDocument::Activate() with Raise().
Vadim Zeitlin [Fri, 29 Mar 2013 19:53:22 +0000 (19:53 +0000)] 
Mention the relationship of wxDocument::Activate() with Raise().

Also provide an example of a custom overridden Raise().

See #15120.

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

11 years agoMinor documentation corrections in wxBookCtrlBase.
Vadim Zeitlin [Fri, 29 Mar 2013 19:53:18 +0000 (19:53 +0000)] 
Minor documentation corrections in wxBookCtrlBase.

Use the correct preposition in "set selection to the given page".

See #15125.

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

11 years agoAdded wxBookCtrlBase::FindPage().
Vadim Zeitlin [Fri, 29 Mar 2013 19:53:13 +0000 (19:53 +0000)] 
Added wxBookCtrlBase::FindPage().

Add helper function to find the index of the given page.

Closes #15125.

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

11 years agoFix assert when constructing invalid wxGBSpan inside wxWidgets itself.
Vadim Zeitlin [Wed, 27 Mar 2013 23:10:25 +0000 (23:10 +0000)] 
Fix assert when constructing invalid wxGBSpan inside wxWidgets itself.

Various wxGridBagSizer methods returning wxGBSpan asserted when trying to
construct an invalid wxGBSpan as its components must now (since r66964) be
positive.

Fix this by adding a special new method to wxGBSpan for constructing such
invalid spans and use it now.

Closes #15124.

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

11 years agoAdd wxDocManager::FindDocumentByPath() helper.
Vadim Zeitlin [Wed, 27 Mar 2013 23:10:20 +0000 (23:10 +0000)] 
Add wxDocManager::FindDocumentByPath() helper.

Simply refactor the code which already existed inside wxDocManager in a new
public method.

Closes #15126.

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

11 years agoFix display of empty wxStaticBoxSizers.
Vadim Zeitlin [Wed, 27 Mar 2013 23:10:15 +0000 (23:10 +0000)] 
Fix display of empty wxStaticBoxSizers.

wxStaticBoxSizer should be considered shown if its static box is shown, even
if it has no elements (or all of them are hidden).

Closes #14698.

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

11 years agoAdd wxDocument::Activate() method.
Vadim Zeitlin [Tue, 26 Mar 2013 11:00:59 +0000 (11:00 +0000)] 
Add wxDocument::Activate() method.

Make activating the first (and, in the vast majority of cases, the only) view
of the document easier.

Closes #15120.

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

11 years agoInitialize Unicode code when generating wxEVT_CHAR_HOOK in wxMSW.
Vadim Zeitlin [Tue, 26 Mar 2013 11:00:24 +0000 (11:00 +0000)] 
Initialize Unicode code when generating wxEVT_CHAR_HOOK in wxMSW.

Use the fixed value of 0 for the keys without Unicode equivalent instead of
whatever junk was there in the uninitialized variable.

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

11 years agoUse WXK_DELETE as Unicode key code for VK_DELETE in wxMSW.
Vadim Zeitlin [Tue, 26 Mar 2013 11:00:20 +0000 (11:00 +0000)] 
Use WXK_DELETE as Unicode key code for VK_DELETE in wxMSW.

U+007F is a Unicode character so we should set Unicode key code to this value
for VK_DELETE presses. This also makes wxMSW consistent with wxGTK.

Closes #3458.

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

11 years agoUse wxCONTROL_PRESSED instead of wxCONTROL_SELECTED in wxOSX renderer code.
Vadim Zeitlin [Tue, 26 Mar 2013 00:59:27 +0000 (00:59 +0000)] 
Use wxCONTROL_PRESSED instead of wxCONTROL_SELECTED in wxOSX renderer code.

wxCONTROL_SELECTED is supposed to only apply to the selected items in a
listbox and similar cases whereas the buttons use wxCONTROL_PRESSED flag to
indicate whether they are toggled.

Correct the code in wxRendererMac to use the latter, for consistency with the
other platforms.

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

11 years agoNo changes, just remove wxGtkIMData forward declarations.
Vadim Zeitlin [Tue, 26 Mar 2013 00:59:22 +0000 (00:59 +0000)] 
No changes, just remove wxGtkIMData forward declarations.

This class doesn't exist any more, so clean up references to it.

See #3158.

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

11 years agofix GTK3 build
Paul Cornett [Fri, 22 Mar 2013 17:03:12 +0000 (17:03 +0000)] 
fix GTK3 build

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

11 years agoAdd GdkEventKey declaration fix PCH-less build.
Vadim Zeitlin [Fri, 22 Mar 2013 14:13:02 +0000 (14:13 +0000)] 
Add GdkEventKey declaration fix PCH-less build.

Declare it in wx/gtk/textentry.h too, not only wx/gtk/window.h.

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

11 years agoAdd IM and full wxEVT_CHAR support to wxTextCtrl and wxComboBox in wxGTK.
Vadim Zeitlin [Thu, 21 Mar 2013 22:37:09 +0000 (22:37 +0000)] 
Add IM and full wxEVT_CHAR support to wxTextCtrl and wxComboBox in wxGTK.

Generate wxEVT_CHAR events for non-ASCII characters entered in these controls
by intercepting their insert-text signal.

Also try to use GtkEntry/GtkTextView internal IM objects but unsuccessfully so
far.

Closes #3158.

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

11 years agoAllow using either single or multi line wxTextCtrl in keyboard sample.
Vadim Zeitlin [Thu, 21 Mar 2013 22:37:06 +0000 (22:37 +0000)] 
Allow using either single or multi line wxTextCtrl in keyboard sample.

These controls are implemented quite differently in wxGTK, so it's convenient
to be able to test both of them in the sample to check that they both behave
correctly.

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

11 years agoRefactor wxGTK IM-related code to allow future modifications.
Vadim Zeitlin [Thu, 21 Mar 2013 22:37:01 +0000 (22:37 +0000)] 
Refactor wxGTK IM-related code to allow future modifications.

No real changes, just make it possible to use a different IM than the one
allocated in wxWindow for input handling. This will be used in the upcoming
changes to wxTextEntry and the related classes.

See #3158.

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

11 years agoTweak wxGTK keyboard handling to allow accelerators to work again.
Vadim Zeitlin [Thu, 21 Mar 2013 22:36:57 +0000 (22:36 +0000)] 
Tweak wxGTK keyboard handling to allow accelerators to work again.

Accelerators were broken by the changes of r72640 which were done to ensure
that the focused window gets the keyboard event first, before its top level
parent. Fix them now by still passing the events to the focused window first
but also passing them to the parent top level if it hasn't been handled by the
focused child.

Unfortunately this is still not fully compatible with wxMSW because in wxGTK
wxEVT_CHAR handler must skip the event in order to allow the accelerator using
the same key to work, while in wxMSW the accelerator can only be suppressed by
overriding wxWindow::MSWShouldPreProcessMessage(). We will need to make the
two ports behave in the same way when the event is not skipped in the future.

But for now, at least make them both behave correctly when the handler does
skip the event.

Closes #14553.

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

11 years agoUse flat generic status bar by default and add wxSB_SUNKEN.
Vadim Zeitlin [Thu, 21 Mar 2013 22:36:52 +0000 (22:36 +0000)] 
Use flat generic status bar by default and add wxSB_SUNKEN.

GTK+ applications don't use sunken status bars since many years, do don't do
it in wxWidgets neither by default any more. Add wxSB_SUNKEN style that can be
explicitly used if the old appearance is desired.

Closes #15009.

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

11 years agoDisable Unity global menu while native modal dialogs are shown in wxGTK.
Vadim Zeitlin [Thu, 21 Mar 2013 22:36:46 +0000 (22:36 +0000)] 
Disable Unity global menu while native modal dialogs are shown in wxGTK.

We need to use wxOpenModalDialogLocker even with native GTK+ dialogs to
prevent the menu commands from being available while they're shown, so do it
in wxMessageDialog and wxColourDialog which call gtk_dialog_run().

Closes #14823.

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

11 years agoCreate a small helper class for Unity global menu bug workaround.
Vadim Zeitlin [Thu, 21 Mar 2013 22:36:42 +0000 (22:36 +0000)] 
Create a small helper class for Unity global menu bug workaround.

Encapsulate the code temporarily incrementing wxOpenModalDialogsCount in a
small helper class to make it easier to reuse it elsewhere.

See #14823.

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

11 years agoNo changes, just remove an unused line of code.
Vadim Zeitlin [Thu, 21 Mar 2013 22:36:38 +0000 (22:36 +0000)] 
No changes, just remove an unused line of code.

Fix g++ warning about initialized but unused variable in wxRTC code.

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

11 years agoAdd missing space to fix r73681 changes.
Vadim Zeitlin [Tue, 19 Mar 2013 15:43:32 +0000 (15:43 +0000)] 
Add missing space to fix r73681 changes.

We need a space between the command and stderr redirection to avoid the "2"
from being taken as part of the last option on the command line.

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

11 years agoFix WM_UNINITMENUPOPUP missing definition for VC6.
Vadim Zeitlin [Tue, 19 Mar 2013 02:58:33 +0000 (02:58 +0000)] 
Fix WM_UNINITMENUPOPUP missing definition for VC6.

The previous workaround of defining it explicitly if it's not defined was left
in src/msw/frame.cpp while the code using WM_UNINITMENUPOPUP was moved to
src/msw/toplevel.cpp in r73562. Move the fallback definition there too.

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

11 years agoSuppress error output from Unix system information functions.
Vadim Zeitlin [Tue, 19 Mar 2013 02:55:31 +0000 (02:55 +0000)] 
Suppress error output from Unix system information functions.

Redirect stderr to /dev/null in wxGetCommandOutput() to avoid errors from the
shell if the command we're trying to run doesn't exist.

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

11 years agoMake sure include doesn't get overwritten when code regenerated
Julian Smart [Mon, 18 Mar 2013 23:32:13 +0000 (23:32 +0000)] 
Make sure include doesn't get overwritten when code regenerated

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

11 years agofix compilation problem
Robin Dunn [Mon, 18 Mar 2013 20:41:06 +0000 (20:41 +0000)] 
fix compilation problem

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

11 years agoFixed help for symbol picker and style manager dialogs
Julian Smart [Mon, 18 Mar 2013 20:21:11 +0000 (20:21 +0000)] 
Fixed help for symbol picker and style manager dialogs

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

11 years agoAdded control over whether size and position units can be changed, and also size...
Julian Smart [Mon, 18 Mar 2013 12:07:41 +0000 (12:07 +0000)] 
Added control over whether size and position units can be changed, and also size and position checkboxes.

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

11 years agoFix minor typo in wxDV_VERT_RULES documentation.
Vadim Zeitlin [Sun, 17 Mar 2013 12:10:21 +0000 (12:10 +0000)] 
Fix minor typo in wxDV_VERT_RULES documentation.

Don't say "is supported" when meaning "if supported" and, in fact, remove this
part entirely as these styles are supported by all implementations.

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

11 years agoCorrected clipboard data id
Julian Smart [Sun, 17 Mar 2013 08:14:03 +0000 (08:14 +0000)] 
Corrected clipboard data id

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

11 years agoFixed centering/right alignment of last line
Julian Smart [Sat, 16 Mar 2013 19:36:50 +0000 (19:36 +0000)] 
Fixed centering/right alignment of last line

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

11 years agoDon't create temporary file in wxDebugReport ctor.
Vadim Zeitlin [Sat, 16 Mar 2013 17:27:31 +0000 (17:27 +0000)] 
Don't create temporary file in wxDebugReport ctor.

Just use wxFileName::GetTempDir() instead of creating a file in the temporary
directory and then using its path.

Closes #15103.

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

11 years agoCorrected wxRichTextCaret refresh
Julian Smart [Thu, 14 Mar 2013 22:32:03 +0000 (22:32 +0000)] 
Corrected wxRichTextCaret refresh

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

11 years agoWe need to switch off UI elements before they are laid out. Do this via static functions.
Julian Smart [Thu, 14 Mar 2013 21:04:24 +0000 (21:04 +0000)] 
We need to switch off UI elements before they are laid out. Do this via static functions.

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

11 years agoRemove obsolete parts of autoconf_inc.m4.
Vadim Zeitlin [Wed, 13 Mar 2013 13:47:38 +0000 (13:47 +0000)] 
Remove obsolete parts of autoconf_inc.m4.

This file has accumulated a lot of condition checks which were not relevant
any more, remove and recreate it (by running bakefile_gen) to get rid of them.

Closes #15101.

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

11 years agoFixed some warnings
Julian Smart [Wed, 13 Mar 2013 09:05:52 +0000 (09:05 +0000)] 
Fixed some warnings

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

11 years agoAdded ability to switch off more components of the size page UI
Julian Smart [Tue, 12 Mar 2013 20:54:51 +0000 (20:54 +0000)] 
Added ability to switch off more components of the size page UI

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

11 years agoFixed UI customization helper
Julian Smart [Tue, 12 Mar 2013 13:33:36 +0000 (13:33 +0000)] 
Fixed UI customization helper

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

11 years agoSearch for font instead of creating it each time
Julian Smart [Mon, 11 Mar 2013 18:03:54 +0000 (18:03 +0000)] 
Search for font instead of creating it each time

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

11 years agoAdded missing RTTI
Julian Smart [Mon, 11 Mar 2013 18:02:11 +0000 (18:02 +0000)] 
Added missing RTTI

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

11 years agomore specific solution to tooltips appearing on neighboring views, refs #15072
Stefan Csomor [Mon, 11 Mar 2013 10:08:19 +0000 (10:08 +0000)] 
more specific solution to tooltips appearing on neighboring views, refs #15072

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

11 years agosupporting also mouse entered / exited events which are not sent to the deepest child...
Stefan Csomor [Sun, 10 Mar 2013 22:13:41 +0000 (22:13 +0000)] 
supporting also mouse entered / exited events which are not sent to the deepest child window, refs #15072

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

11 years agosupport alpha in color dialog, see #14127
Stefan Csomor [Sun, 10 Mar 2013 21:14:17 +0000 (21:14 +0000)] 
support alpha in color dialog, see #14127

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

11 years agomake sure dialogs can support alpha transparency sliders
Stefan Csomor [Sun, 10 Mar 2013 21:12:45 +0000 (21:12 +0000)] 
make sure dialogs can support alpha transparency sliders

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

11 years agoadd support for alpha in color dialog on OSX, see #14127
Stefan Csomor [Sun, 10 Mar 2013 20:36:22 +0000 (20:36 +0000)] 
add support for alpha in color dialog on OSX, see #14127

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

11 years agoavoid multiple mouse moved events, refs #15072
Stefan Csomor [Sun, 10 Mar 2013 19:02:55 +0000 (19:02 +0000)] 
avoid multiple mouse moved events, refs #15072

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

11 years agotrying to solve cursor update problems with AUI, refs #15072
Stefan Csomor [Sun, 10 Mar 2013 14:20:36 +0000 (14:20 +0000)] 
trying to solve cursor update problems with AUI, refs #15072

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

11 years agoDisable sorting of generic wxDataViewCtrl while it is frozen.
Vadim Zeitlin [Sun, 10 Mar 2013 01:09:41 +0000 (01:09 +0000)] 
Disable sorting of generic wxDataViewCtrl while it is frozen.

Don't sort the contents of wxDataViewCtrl while it is frozen and resort it
only when it is thawed. This dramatically speeds up adding items to the
control when sorting is used as we only sort it once now instead of doing it
after adding every item.

Closes #14073.

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

11 years agoUse symbolic constants instead of magic numbers in wxDataViewCtrl code.
Vadim Zeitlin [Sun, 10 Mar 2013 01:09:37 +0000 (01:09 +0000)] 
Use symbolic constants instead of magic numbers in wxDataViewCtrl code.

No real changes, just add SortColumn_XXX symbolic constants which are somewhat
more clear than -1 and -2 used before. Although the code based on the global
variables remains as bad as before.

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

11 years agoAdd GetFile() accessor to wxFileStream classes.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:44 +0000 (15:08 +0000)] 
Add GetFile() accessor to wxFileStream classes.

Allow to retrieve the underlying file used by the stream.

Closes #15093.

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

11 years agoNo real changes, just use wxString::clear() instead of assignment.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:40 +0000 (15:08 +0000)] 
No real changes, just use wxString::clear() instead of assignment.

Consistently use clear() everywhere instead of assigning wxEmptyString in some
places and wxT("") in some others to a string in order to clear it.

See #15091.

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

11 years agoReturn false from wxFileName::AppendDir() and InsertDir() on failure.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:36 +0000 (15:08 +0000)] 
Return false from wxFileName::AppendDir() and InsertDir() on failure.

Give the caller a way to know whether the directory was valid or not.

Closes #15091.

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

11 years agoUse generic spin control itself as parent for its children.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:31 +0000 (15:08 +0000)] 
Use generic spin control itself as parent for its children.

This fixes a problem with using wxSpinCtrlGeneric in toolbars under wxOSX,
using the toolbar itself (i.e. the parent of the spin control) as parent for
the children didn't work there and no windows were visible at all.

Also use wxNavigationEnabled as base class of wxSpinCtrlGeneric to fix
keyboard navigation.

And override SetBackgroundColour() to set it for the text control part of the
spin control only.

Closes #15016.

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

11 years agoImplement support for pen cap and join in wxPostScriptDC.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:25 +0000 (15:08 +0000)] 
Implement support for pen cap and join in wxPostScriptDC.

Use PostScript "setlinecap" and "setlinejoin" commands to do it.

Closes #1244.

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

11 years agoTest PostScript printing in the print sample if it is compiled in.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:21 +0000 (15:08 +0000)] 
Test PostScript printing in the print sample if it is compiled in.

Just use wxUSE_POSTSCRIPT instead of wxTEST_POSTSCRIPT_IN_MSW and also do it
under all platforms, not just MSW.

See #1244.

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

11 years agoFix compilation with MinGW -std=c++11 option.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:17 +0000 (15:08 +0000)] 
Fix compilation with MinGW -std=c++11 option.

With this option _strdup() is not available, so update the code defining
wxCRT_StrdupA() to check for __WX_STRICT_ANSI_GCC__.

Also try to simplify it a bit and make it more clear.

Closes #15011.

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

11 years agoFix compilation for MinGW with wxUSE_IPV6==1.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:13 +0000 (15:08 +0000)] 
Fix compilation for MinGW with wxUSE_IPV6==1.

MinGW doesn't provide wspiapi.h header, so only include it when using MSVC and
include ws2tcpip.h which directly declares the functions used for the other
compilers.

This doesn't have quite the same semantics but it's better than failing to
compile at all.

See #15005.

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

11 years agoDon't cache HDC used by wxPaintDCEx in wxMSW.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:09 +0000 (15:08 +0000)] 
Don't cache HDC used by wxPaintDCEx in wxMSW.

This avoids the problem with mistakenly using wrong HDC in wxBitmapComboBox
code which was due to assuming that we can only ever have one paint HDC for
the given window -- while in wxBitmapComboBox case we are passed different
HDCs for the same window via WM_DRAWITEM.

Instead of fixing the cache, just don't use it at all for wxPaintDCEx as we
don't gain anything from doing it anyhow.

Closes #14842.

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

11 years agoFit the generic preferences editor dialog to its pages size initially.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:05 +0000 (15:08 +0000)] 
Fit the generic preferences editor dialog to its pages size initially.

Ensure that the dialog has the appropriate size before showing it.

In addition to making it big enough to fit the pages contents, this also fixes
a problem with initial appearance under MSW.

Closes #15092.

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

11 years agoDon't set cell value in wxDataViewEvent in one place only.
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:00 +0000 (15:08 +0000)] 
Don't set cell value in wxDataViewEvent in one place only.

We should either set the cell value in the event object everywhere or not do
it anywhere and as currently the native GTK and OS X versions don't do it at
all and the generic version only does it for ITEM_CONTEXT_MENU events, it's
easier to not do it at all.

See #14163.

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

11 years agoRemove wxLogWindow::OnFrameCreate() virtual method.
Vadim Zeitlin [Sat, 9 Mar 2013 15:07:56 +0000 (15:07 +0000)] 
Remove wxLogWindow::OnFrameCreate() virtual method.

This method couldn't be overridden by the classes deriving from wxLogWindow
because it was called (indirectly) from wxLogWindow ctor itself and so was
completely useless. Just remove it to avoid confusion.

Closes #12763.

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

11 years agoRestore wxDIRCTRL_SHOW_FILTERS flag of wxDirCtrl.
Vadim Zeitlin [Sat, 9 Mar 2013 15:07:49 +0000 (15:07 +0000)] 
Restore wxDIRCTRL_SHOW_FILTERS flag of wxDirCtrl.

Closes #8572.

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

11 years agoavoid infinite recursion for richtooltops, (hopefully) fixes #15070
Stefan Csomor [Thu, 7 Mar 2013 21:41:39 +0000 (21:41 +0000)] 
avoid infinite recursion for richtooltops, (hopefully) fixes #15070

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

11 years agoimplementing canBecomeKeyView for user panes, native focus support, fixes #15070
Stefan Csomor [Wed, 6 Mar 2013 21:00:38 +0000 (21:00 +0000)] 
implementing canBecomeKeyView for user panes, native focus support, fixes #15070

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

11 years agoMinor tweaks to the preferences docs for Phoenix.
Robin Dunn [Tue, 5 Mar 2013 06:50:37 +0000 (06:50 +0000)] 
Minor tweaks to the preferences docs for Phoenix.

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

11 years agodon't use string module
Robin Dunn [Tue, 5 Mar 2013 06:50:28 +0000 (06:50 +0000)] 
don't use string module

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

11 years agoUnselect all wxDataViewCtrl items when clicking outside of the item area.
Vadim Zeitlin [Mon, 4 Mar 2013 18:19:41 +0000 (18:19 +0000)] 
Unselect all wxDataViewCtrl items when clicking outside of the item area.

This is consistent with Windows behaviour and as the generic wxDataViewCtrl is
mostly used under Windows, it makes sense to follow Windows convention in it.

Closes #15082.

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

11 years agoFix crash on wxDataViewCtrl creation after r73565.
Vadim Zeitlin [Mon, 4 Mar 2013 11:48:26 +0000 (11:48 +0000)] 
Fix crash on wxDataViewCtrl creation after r73565.

Initialize m_clientArea to NULL to avoid crash in SetFont() which is called
during the control creation.

This might still be not 100% correct as the initial font is not set at all for
the client area but at least it fixes the crash.

See #15056.

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

11 years agoCorrected layout when scaling the control
Julian Smart [Mon, 4 Mar 2013 10:47:55 +0000 (10:47 +0000)] 
Corrected layout when scaling the control

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

11 years agoFix handling of wxST_NO_AUTORESIZE in wxOSX.
Vadim Zeitlin [Sun, 3 Mar 2013 22:44:17 +0000 (22:44 +0000)] 
Fix handling of wxST_NO_AUTORESIZE in wxOSX.

We do need to set the size of wxStaticText initially even when this style is
specified, it only tells us to not update it later. Otherwise even the initial
label was never shown in full.

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

11 years agoFix hundreds of unused parameter warnings in wxOSX build.
Vadim Zeitlin [Sun, 3 Mar 2013 22:44:14 +0000 (22:44 +0000)] 
Fix hundreds of unused parameter warnings in wxOSX build.

Comment out the name of the parameter in the recently added SetupTabs().

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

11 years agoissue NUMPAD constants only for Key but not for Char events, fixes #15073
Stefan Csomor [Sun, 3 Mar 2013 17:23:58 +0000 (17:23 +0000)] 
issue NUMPAD constants only for Key but not for Char events, fixes #15073

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

11 years agoRevert "Fix off by 1 error in wxGenericListCtrl::HitTest()."
Vadim Zeitlin [Sun, 3 Mar 2013 12:19:20 +0000 (12:19 +0000)] 
Revert "Fix off by 1 error in wxGenericListCtrl::HitTest()."

Revert r73563, this breaks the selection in the control apparently.

See #15063.

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

11 years agoenabling cursor events, fixes #15044
Stefan Csomor [Sat, 2 Mar 2013 13:01:57 +0000 (13:01 +0000)] 
enabling cursor events, fixes #15044

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

11 years agoReset accelerator table after removing last accelerator in wxMSW wxMenuBar.
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:53 +0000 (12:11 +0000)] 
Reset accelerator table after removing last accelerator in wxMSW wxMenuBar.

We didn't update the accelerator table if no more accelerators were left in it
but we still need to do it to stop handling the previously active accelerators.

Closes #15078.

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

11 years agoUse more native icons in wxMSW wxArtProvider.
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:47 +0000 (12:11 +0000)] 
Use more native icons in wxMSW wxArtProvider.

Use SHGetStockIconInfo() and SHGetFileInfo() to look up some icons.

Closes #15068.

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

11 years agoEnable wxUSE_FSVOLUME in configure builds.
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:44 +0000 (12:11 +0000)] 
Enable wxUSE_FSVOLUME in configure builds.

This was never set to 1 when using configure, add a configure option for it
and set it to 1 by default now.

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

11 years agoDon't give error message for non-existent paths in wxFileSystemWatcher.
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:40 +0000 (12:11 +0000)] 
Don't give error message for non-existent paths in wxFileSystemWatcher.

The file we're trying to watch might have been just deleted, this is an
unavoidable (and not only in theory but also in practice when watching busy
directories) race condition so don't give an error message if this does happen
but simply return false from Add().

Closes #15051.

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

11 years agoInterpret wxRect passed to wxRichToolTip::ShowFor() as client coords.
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:36 +0000 (12:11 +0000)] 
Interpret wxRect passed to wxRichToolTip::ShowFor() as client coords.

It makes more sense to use the window coordinates here instead of the screen
ones.

Closes #15060.

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

11 years agoMake wxRect parameter of wxRichToolTip::ShowFor() const.
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:32 +0000 (12:11 +0000)] 
Make wxRect parameter of wxRichToolTip::ShowFor() const.

This parameter is read-only, so accept a const pointer here.

See #15060.

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

11 years agoTraditional Chinese translations update from Wei-Lun Chao.
Vadim Zeitlin [Fri, 1 Mar 2013 13:00:41 +0000 (13:00 +0000)] 
Traditional Chinese translations update from Wei-Lun Chao.

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

11 years agoDon't use GetThreadId() in wxMSW code.
Vadim Zeitlin [Fri, 1 Mar 2013 12:21:41 +0000 (12:21 +0000)] 
Don't use GetThreadId() in wxMSW code.

Revert r73585, GetThreadId() is only available in Vista or later so don't use
it.

Just cast the handle to an integer explicitly to be able to print it with
"%x".

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

11 years agoUse thread ID and not thread handle in the error messages in wxMSW.
Vadim Zeitlin [Thu, 28 Feb 2013 20:41:14 +0000 (20:41 +0000)] 
Use thread ID and not thread handle in the error messages in wxMSW.

The ID is in general more useful than the handle and this also fixes an assert
failure due to mismatch between the HANLDE type and "%x" format specifier.

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

11 years agoenabling menu close event, fixes #15069
Stefan Csomor [Thu, 28 Feb 2013 18:11:35 +0000 (18:11 +0000)] 
enabling menu close event, fixes #15069

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

11 years agoCorrected loading of images: we need the parent size to compute initial object size
Julian Smart [Thu, 28 Feb 2013 17:23:09 +0000 (17:23 +0000)] 
Corrected loading of images: we need the parent size to compute initial object size

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

11 years agoCompilation fix for wxPreferencesPage.
Václav Slavík [Thu, 28 Feb 2013 16:53:41 +0000 (16:53 +0000)] 
Compilation fix for wxPreferencesPage.

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

11 years agoAdd preferences sample.
Václav Slavík [Thu, 28 Feb 2013 16:29:12 +0000 (16:29 +0000)] 
Add preferences sample.

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

11 years agoAdd wxPreferencesEditor class.
Václav Slavík [Thu, 28 Feb 2013 16:29:05 +0000 (16:29 +0000)] 
Add wxPreferencesEditor class.

Implements native UI for preferences editing.  In particular, the API
handles the differences between modal (Windows) and non-modal (OS X) preferences windows and provides platform's native look.

Currently implemented natively for wxOSX/Cocoa, wxGTK and Windows (the latter is used as a fallback generic implementation as well).

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

11 years agoAdd support for Cocoa's selectable toolbar items.
Václav Slavík [Thu, 28 Feb 2013 16:28:56 +0000 (16:28 +0000)] 
Add support for Cocoa's selectable toolbar items.

The support is currently limited to making all toolbar items selectable
and is only available in wxOSX with Cocoa and native toolbars.

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

11 years agoAdd wxBitmap(NSImage*) ctor to wxOSX.
Václav Slavík [Thu, 28 Feb 2013 16:28:52 +0000 (16:28 +0000)] 
Add wxBitmap(NSImage*) ctor to wxOSX.

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

11 years agoLine endings fixes in bakefile-generated files.
Václav Slavík [Thu, 28 Feb 2013 14:29:00 +0000 (14:29 +0000)] 
Line endings fixes in bakefile-generated files.

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

11 years agoDon't include Common-Controls manifest in wxBase apps.
Václav Slavík [Thu, 28 Feb 2013 13:31:58 +0000 (13:31 +0000)] 
Don't include Common-Controls manifest in wxBase apps.

If only the non-GUI portions of wxWidgets are used, the dependency on
Microsoft.Windows.Common-Controls assembly shouldn't be automatically
added to Visual C++. Only do it when compiling GUI code.

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