wxWidgets.git
11 years agoAdd support for wxALWAYS_SHOW_SB style to wxScrolled<>.
Vadim Zeitlin [Thu, 4 Oct 2012 23:24:28 +0000 (23:24 +0000)] 
Add support for wxALWAYS_SHOW_SB style to wxScrolled<>.

Simply call ShowScrollbars(wxSHOW_SB_ALWAYS) if this style is specified.

Closes #13616.

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

11 years agoDocument wxHSCROLL and wxVSCROLL styles for wxScrolled<>.
Vadim Zeitlin [Thu, 4 Oct 2012 23:24:05 +0000 (23:24 +0000)] 
Document wxHSCROLL and wxVSCROLL styles for wxScrolled<>.

Explain that by default both styles are assumed but that using just one of
them disables the scrolling in the other direction.

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

11 years agoAdd a setting for the disabled text colour to wxRibbon art.
Vadim Zeitlin [Thu, 4 Oct 2012 23:23:41 +0000 (23:23 +0000)] 
Add a setting for the disabled text colour to wxRibbon art.

Allow specifying the text for the labels of the disabled items separately.

Closes #14721.

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

11 years agoAdd a more convenient wxColour::MakeDisabled() overload.
Vadim Zeitlin [Thu, 4 Oct 2012 23:23:18 +0000 (23:23 +0000)] 
Add a more convenient wxColour::MakeDisabled() overload.

Allow creating a disabled version of the colour without having to manually
break it into RGB components and then recreating it from them.

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

11 years agoRemove unneeded variable initializations in wxPM code.
Vadim Zeitlin [Thu, 4 Oct 2012 22:49:30 +0000 (22:49 +0000)] 
Remove unneeded variable initializations in wxPM code.

Closes #14724.

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

11 years agoFix bugs in the recently added wxDateTime::DiffAsDateSpan().
Vadim Zeitlin [Thu, 4 Oct 2012 22:48:30 +0000 (22:48 +0000)] 
Fix bugs in the recently added wxDateTime::DiffAsDateSpan().

Correct the test for negative spans less than a month and use the correct
month for computing the number of days in it.

Also add unit tests for problematic cases.

Closes #14704.

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

11 years agoAdd wxDateSpan::GetTotalMonths() method.
Vadim Zeitlin [Thu, 4 Oct 2012 22:48:07 +0000 (22:48 +0000)] 
Add wxDateSpan::GetTotalMonths() method.

This is similar to the existing GetTotalDays() and counts both months and
years.

See #14704.

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

11 years agoFix fatal bug in the recently added wxFile::ReadAll().
Vadim Zeitlin [Thu, 4 Oct 2012 22:47:44 +0000 (22:47 +0000)] 
Fix fatal bug in the recently added wxFile::ReadAll().

Make sure we exit the loop when reading the file in chunks in
wxFile::ReadAll() and add a unit test for it to ensure that it's really
correct.

Closes #14725.

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

11 years agonon-pch build fix
Paul Cornett [Thu, 4 Oct 2012 16:08:30 +0000 (16:08 +0000)] 
non-pch build fix

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

11 years agoremove always-true comparison of unsigned value >= 0
Paul Cornett [Thu, 4 Oct 2012 15:58:11 +0000 (15:58 +0000)] 
remove always-true comparison of unsigned value >= 0

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

11 years agosilence warnings about shadowed variables with GCC -Wshadow
Paul Cornett [Thu, 4 Oct 2012 15:55:06 +0000 (15:55 +0000)] 
silence warnings about shadowed variables with GCC -Wshadow

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

11 years agoDo use IsEscapeKey() in wxDialog escape key handling.
Vadim Zeitlin [Wed, 3 Oct 2012 08:32:49 +0000 (08:32 +0000)] 
Do use IsEscapeKey() in wxDialog escape key handling.

This method was added back in r40686 but was never actually used anywhere. Do
use it in wxDialogBase::OnCharHook() now instead of hard-coding the check for
WXK_ESCAPE, this should allow using Cmd+. to work like Escape under Mac which
was apparently the intention of the code in src/osx/dialog_osx.cpp.

Also fix IsEscapeKey() itself to ignore any modifiers as at least under MSW
Esc always closes the dialog, even if Shift or Alt is pressed.

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

11 years agoAdd missing header to fix MiscGUIFuncsTestCase compilation.
Vadim Zeitlin [Wed, 3 Oct 2012 07:58:56 +0000 (07:58 +0000)] 
Add missing header to fix MiscGUIFuncsTestCase compilation.

Need full wxPanel declaration here now.

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

11 years agoFix wxFindWindowAtPoint() unit test to pass under GTK.
Vadim Zeitlin [Wed, 3 Oct 2012 00:16:53 +0000 (00:16 +0000)] 
Fix wxFindWindowAtPoint() unit test to pass under GTK.

We need to ensure that all windows are realized before querying their
positions on screen, so add an extra wxYield().

Also adjust the tests slightly as the windows are now all created in the
beginning of the function.

Finally, use Destroy() instead of wxDELETE() for windows.

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

11 years agoAdded a simple unit test for wxWindow::ClientToScreen().
Vadim Zeitlin [Wed, 3 Oct 2012 00:16:30 +0000 (00:16 +0000)] 
Added a simple unit test for wxWindow::ClientToScreen().

Check that this function works consistently for the TLW and its children and
grand-children.

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

11 years agoAvoid creating children of wxButton in MiscGUIFuncsTestCase.
Vadim Zeitlin [Wed, 3 Oct 2012 00:16:07 +0000 (00:16 +0000)] 
Avoid creating children of wxButton in MiscGUIFuncsTestCase.

This doesn't work in wxGTK, use a normal wxWindow instead of wxButton in this
case.

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

11 years agoremove some unnecessary casts
Paul Cornett [Tue, 2 Oct 2012 16:19:33 +0000 (16:19 +0000)] 
remove some unnecessary casts

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

11 years agomake more Init() functions private
Paul Cornett [Tue, 2 Oct 2012 15:57:03 +0000 (15:57 +0000)] 
make more Init() functions private

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

11 years agoFix assert about passing long as "%d" in wxXRC code.
Vadim Zeitlin [Mon, 1 Oct 2012 10:47:24 +0000 (10:47 +0000)] 
Fix assert about passing long as "%d" in wxXRC code.

Closes #14718.

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

11 years agoNo changes, just remove some unneeded variables initializations.
Vadim Zeitlin [Mon, 1 Oct 2012 09:55:50 +0000 (09:55 +0000)] 
No changes, just remove some unneeded variables initializations.

Closes #14716, #14717.

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

11 years agoTest for wxAuiMDIClientWindow being non-NULL before using it.
Vadim Zeitlin [Mon, 1 Oct 2012 09:55:27 +0000 (09:55 +0000)] 
Test for wxAuiMDIClientWindow being non-NULL before using it.

wxAuiMDIParentFrame::GetActiveChild() may be called before the client window
is created, don't crash in this case but just return NULL.

Closes #14684.

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

11 years agoAdd wxDateTime::DiffAsDateSpan().
Vadim Zeitlin [Mon, 1 Oct 2012 09:55:05 +0000 (09:55 +0000)] 
Add wxDateTime::DiffAsDateSpan().

This method returns the difference between the dates as wxDateSpan, unlike the
existing Subtract() and overloaded operator-() that return wxTimeSpan.

Closes #14704.

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

11 years agoFix PCH-less build after the changes of r72589.
Vadim Zeitlin [Mon, 1 Oct 2012 09:40:06 +0000 (09:40 +0000)] 
Fix PCH-less build after the changes of r72589.

Use wx{SOLID,TRANSPARENT} instead of wxBRUSHSTYLE_{SOLID,TRANSPARENT}. This
makes more sense as we're setting background mode, not brush style, here and
also fixed compilation when not using PCH.

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

11 years agoRead and write files using binary mode in wxStyledTextCtrl.
Vadim Zeitlin [Sun, 30 Sep 2012 22:28:53 +0000 (22:28 +0000)] 
Read and write files using binary mode in wxStyledTextCtrl.

Use binary mode to preserve the original file EOLs when loading it and also to
save it with the same EOLs later.

Add very primitive EOL auto-detection to LoadFile().

Also add SaveFile()/LoadFile() which were missing in !wxUSE_TEXTCTRL case.

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

11 years agoSmall optimization of wxFFile::ReadAll(): avoid extra string copy.
Vadim Zeitlin [Sun, 30 Sep 2012 22:28:31 +0000 (22:28 +0000)] 
Small optimization of wxFFile::ReadAll(): avoid extra string copy.

Use swap() to move the newly created string into its destination instead of
copying it there. This can be relatively important as the string represents an
entire file contents here and so could be quite long.

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

11 years agoAdded wxFile::ReadAll() for consistency with wxFFile::ReadAll().
Vadim Zeitlin [Sun, 30 Sep 2012 22:28:08 +0000 (22:28 +0000)] 
Added wxFile::ReadAll() for consistency with wxFFile::ReadAll().

Make it possible to use wxFFile and wxFile interchangeably for simply reading
the entire contents of the file as a string.

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

11 years agoReimplement wxTextEntry::DoSetValue() in wxStyledTextCtrl.
Vadim Zeitlin [Sun, 30 Sep 2012 22:27:44 +0000 (22:27 +0000)] 
Reimplement wxTextEntry::DoSetValue() in wxStyledTextCtrl.

The version inherited from the base class does work already but calling
Scintilla SetText() directly should be more efficient than selecting
everything and then calling ReplaceSelection() as the base class version does,
less code is executed.

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

11 years agoFix wxStyledTextCtrl::WriteText() to replace the selection.
Vadim Zeitlin [Sun, 30 Sep 2012 22:27:21 +0000 (22:27 +0000)] 
Fix wxStyledTextCtrl::WriteText() to replace the selection.

WriteText() must replace the selection, not just insert the new text,
otherwise SetValue() implementation inherited from the base class doesn't work
as it doesn't clear the old contents of the control before adding new text to
it.

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

11 years agoDon't call ClearAll() before LoadFile() in the stc sample.
Vadim Zeitlin [Sun, 30 Sep 2012 22:26:58 +0000 (22:26 +0000)] 
Don't call ClearAll() before LoadFile() in the stc sample.

There is no need to clear the control contents before loading a file into it
because LoadFile() is supposed to do this on its own (although currently it
doesn't, which will be fixed soon).

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

11 years agoMake stc sample startup faster.
Vadim Zeitlin [Sun, 30 Sep 2012 22:26:36 +0000 (22:26 +0000)] 
Make stc sample startup faster.

Don't show "About" dialog on startup, this has nothing to do with the purpose
of this sample and is just annoying.

Also, don't select the entire file after opening it.

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

11 years agoAdd per-direction wxSocket wait flags and byte counters.
Vadim Zeitlin [Sun, 30 Sep 2012 22:21:44 +0000 (22:21 +0000)] 
Add per-direction wxSocket wait flags and byte counters.

Allow to specify whether the socket should block until all the data is read or
written or, on the contrary, avoid blocking only when reading or writing
instead of always using the same behaviour in both directions.

Also add separate counters for the bytes read/written instead of using the
same one for both.

These changes make it possible to use the same socket for reading/writing in
different threads.

Closes #14506.

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

11 years agoDon't crash in generic wxDataViewCtrl if it doesn't have any model.
Vadim Zeitlin [Sun, 30 Sep 2012 22:21:20 +0000 (22:21 +0000)] 
Don't crash in generic wxDataViewCtrl if it doesn't have any model.

A model may be dissociated from a still existing control, don't crash if it
happens (notice that we still would crash in the native GTK version right now,
so this still remains to be fixed there).

See #14616.

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

11 years agoAdd support for background-color style to span element in wxHTML.
Vadim Zeitlin [Sun, 30 Sep 2012 22:20:58 +0000 (22:20 +0000)] 
Add support for background-color style to span element in wxHTML.

Add code for setting/restoring background mode and use it to implement support
for changing the text background colour.

Closes #14443.

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

11 years agoFix handling of spaces after <img> tag in wxHTML.
Vadim Zeitlin [Sun, 30 Sep 2012 22:20:34 +0000 (22:20 +0000)] 
Fix handling of spaces after <img> tag in wxHTML.

Don't collapse the spaces following this tag with the ones preceding it.

See #14557.

Closes #2980.

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

11 years agoConvert image tags to text using their alt attribute in wxHTML.
Vadim Zeitlin [Sun, 30 Sep 2012 22:20:11 +0000 (22:20 +0000)] 
Convert image tags to text using their alt attribute in wxHTML.

This is useful when copying wxHtmlWindow contents to clipboard, for example.

Closes #14557.

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

11 years agoFix handling of not fully specified min/max size in wxBoxSizer.
Vadim Zeitlin [Sun, 30 Sep 2012 22:19:47 +0000 (22:19 +0000)] 
Fix handling of not fully specified min/max size in wxBoxSizer.

wxSizerItem::AddBorderToSize() added in r72344 (see #11497) didn't work
correctly as it replaced unspecified (i.e. set to -1) components of wxSize
with the small positive values that did take effect, contrary to the
intention.

Fix it to only adjust the actually set component(s) of wxSize.

Closes #14696.

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

11 years agoNo changes, just fix some typos in comments in wxXRC code.
Vadim Zeitlin [Sun, 30 Sep 2012 22:19:24 +0000 (22:19 +0000)] 
No changes, just fix some typos in comments in wxXRC code.

Closes #14714.

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

11 years agoNo changes, just remove unneeded variable initialization.
Vadim Zeitlin [Sun, 30 Sep 2012 22:19:01 +0000 (22:19 +0000)] 
No changes, just remove unneeded variable initialization.

Closes #14712, #14713.

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

11 years agoRevert "Don't use StringFormat::GenericTypographic() in MSW wxGraphicsContext."
Vadim Zeitlin [Sun, 30 Sep 2012 20:35:56 +0000 (20:35 +0000)] 
Revert "Don't use StringFormat::GenericTypographic() in MSW wxGraphicsContext."

This reverts r72442 and restores the use of GenericTypographic string format
for GDI+ text rendering. While it's true that using this flag with small font
sizes results in pretty bad output, especially under Windows XP, not using it
results in wrong text extent calculations for all sizes which is even worse.

See #14537.

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

11 years agoFix computation of menu button best size in generic wxSearchCtrl.
Vadim Zeitlin [Sun, 30 Sep 2012 20:35:33 +0000 (20:35 +0000)] 
Fix computation of menu button best size in generic wxSearchCtrl.

Invalidate the cached best size when the bitmap changes.

Closes #14708.

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

11 years agoClear the search control automatically when it's "Cancel" button is pressed.
Vadim Zeitlin [Sun, 30 Sep 2012 20:35:10 +0000 (20:35 +0000)] 
Clear the search control automatically when it's "Cancel" button is pressed.

This should be the desired behaviour in the vast majority of cases, so do it
by default.

Replace the useless OnSearchButton() doing nothing with search button events
with OnCancelButton() handling cancel button events and clearing the control.

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

11 years agoDon't use text control foreground colour for generic wxSearchCtrl itself.
Vadim Zeitlin [Sun, 30 Sep 2012 20:34:46 +0000 (20:34 +0000)] 
Don't use text control foreground colour for generic wxSearchCtrl itself.

Logically, it should be done in the other direction and also doing it like
this means that the search and cancel icons, rendered using the current
foreground colour, are barely visible when using generic wxTextCtrl::SetHint()
implementation, as in wxGTK, because the text control foreground is set to
light grey in this case.

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

11 years agomake wxWindowGTK::Init() private, it is not meant to be called from derived classes
Paul Cornett [Sun, 30 Sep 2012 16:55:40 +0000 (16:55 +0000)] 
make wxWindowGTK::Init() private, it is not meant to be called from derived classes

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

11 years agoUse Refresh when the initial paint was abandoned by Scintilla so it will trigger...
Robin Dunn [Sun, 30 Sep 2012 02:33:56 +0000 (02:33 +0000)] 
Use Refresh when the initial paint was abandoned by Scintilla so it will trigger a repaint of the whole window.  This is done for things like style changes, word wrapping or brace highlights where more than the current line is affected.  Fixes #14653.

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

11 years agoFix generic wxSearchCtrl best size calculation.
Vadim Zeitlin [Fri, 28 Sep 2012 23:50:27 +0000 (23:50 +0000)] 
Fix generic wxSearchCtrl best size calculation.

The best size of its text control part was not calculated correctly any more
because a wrong best size was cached during wxSearchTextCtrl construction,
when the final class overridden DoGetBestSize() was not called.

Fix this by explicitly invalidating the best size at the end of constructor
for now even though it would be arguably better to fix this in some way not
requiring anything extra to be done to always take the overridden method into
account, especially as it used to work before. But it's not clear how exactly
to restore this so for now do at least fix wxSearchCtrl appearance.

Closes #14708.

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

11 years agoFix wxSearchCtrl recreation in the widgets sample.
Vadim Zeitlin [Fri, 28 Sep 2012 23:50:05 +0000 (23:50 +0000)] 
Fix wxSearchCtrl recreation in the widgets sample.

The control wasn't readded to the sizer correctly after being recreated.

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

11 years agoRemove unused SearchCtrlWidgetsPage::Reset() from widgets sample.
Vadim Zeitlin [Fri, 28 Sep 2012 23:49:42 +0000 (23:49 +0000)] 
Remove unused SearchCtrlWidgetsPage::Reset() from widgets sample.

This method was simply unused and unneeded.

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

11 years agoDon't send events for disabled ribbon bar buttons.
Vadim Zeitlin [Fri, 28 Sep 2012 23:49:20 +0000 (23:49 +0000)] 
Don't send events for disabled ribbon bar buttons.

Hover and activation events were sent even for the disabled buttons which was
unexpected and inconsistent with wxRibbonToolBar, so don't do it.

Closes #14709.

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

11 years agoMake wxHelpControllerBase::SetFrameParameters() title more clear.
Vadim Zeitlin [Fri, 28 Sep 2012 23:48:57 +0000 (23:48 +0000)] 
Make wxHelpControllerBase::SetFrameParameters() title more clear.

Describe it as "title format string" and call it "titleFormat" and not just
"title" because this is what it is.

Closes #14707.

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

11 years agoAdd "inherit" to <font> XRC tag.
Vadim Zeitlin [Fri, 28 Sep 2012 23:48:34 +0000 (23:48 +0000)] 
Add "inherit" to <font> XRC tag.

This allows to construct a font based on the parent window font instead of
either fully specifying all font parameters or basing it on a standard font.

Closes #14632.

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

11 years agoFix testing for existence of paths with trailing separators in wxMSW.
Vadim Zeitlin [Fri, 28 Sep 2012 23:48:09 +0000 (23:48 +0000)] 
Fix testing for existence of paths with trailing separators in wxMSW.

We removed the trailing separators, that prevented GetFileAttributes() from
working correctly, from the path but then didn't pass the modified path to it
but the original one. Fix this and do use the updated path.

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

11 years agoAvoid unrealizing a frozen window
Paul Cornett [Fri, 28 Sep 2012 16:09:12 +0000 (16:09 +0000)] 
Avoid unrealizing a frozen window
It seems to continue to prevent updates to the affected area

Fixes #13543

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

11 years agoMake wxTextEntryDialog resizable.
Vadim Zeitlin [Thu, 27 Sep 2012 22:41:55 +0000 (22:41 +0000)] 
Make wxTextEntryDialog resizable.

It can be used for entry of relatively long text now, especially when
wxTE_MULTILINE flag is used, so allow the user to resize it to facilitate the
entry.

Closes #14702.

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

11 years agoAdd two step creation to wxTextEntryDialog.
Vadim Zeitlin [Thu, 27 Sep 2012 22:41:33 +0000 (22:41 +0000)] 
Add two step creation to wxTextEntryDialog.

Add Create() method and default ctor for consistency with the other classes.

See #14702.

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

11 years agoUse SelectAll() instead of SetSelection(-1, -1).
Vadim Zeitlin [Thu, 27 Sep 2012 22:41:09 +0000 (22:41 +0000)] 
Use SelectAll() instead of SetSelection(-1, -1).

The former is more clear and also shorter.

Closes #14701.

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

11 years agoRemove the now unnecessary wxRichTextCtrl::SelectAll().
Vadim Zeitlin [Thu, 27 Sep 2012 22:40:46 +0000 (22:40 +0000)] 
Remove the now unnecessary wxRichTextCtrl::SelectAll().

It is already inherited from the base wxTextEntry class.

See #14701.

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

11 years agoFix _tputenv() return value test in wxSetEnv().
Vadim Zeitlin [Thu, 27 Sep 2012 13:58:26 +0000 (13:58 +0000)] 
Fix _tputenv() return value test in wxSetEnv().

_tputenv() returns -1, not 0, on error, as all the other CRT functions, so the
test added by r72496 resulted in wxSetEnv() and wxUnsetEnv() always failing
when using MSVC.

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

11 years agoAccount correctly for the controller when computing wxBookCtrl best size.
Vadim Zeitlin [Thu, 27 Sep 2012 12:47:40 +0000 (12:47 +0000)] 
Account correctly for the controller when computing wxBookCtrl best size.

We must not increase the total control size in the direction along the
controller window as the size of the controller in this direction is
determined by the size of the control itself. So doing this resulted in always
increasing best size in this direction to be at least equal to the current
size which was wrong.

Closes #14496.

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

11 years agoUse wxSize::IncTo() in wxBookCtrlBase::DoGetBestSize().
Vadim Zeitlin [Thu, 27 Sep 2012 12:47:17 +0000 (12:47 +0000)] 
Use wxSize::IncTo() in wxBookCtrlBase::DoGetBestSize().

No changes, just use an existing wxSize method instead of reimplementing it in
the loop over the pages in wxBookCtrlBase.

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

11 years agoAvoid useless iteration on all pages in wxBookCtrlBase::DoGetBestSize().
Vadim Zeitlin [Thu, 27 Sep 2012 12:46:53 +0000 (12:46 +0000)] 
Avoid useless iteration on all pages in wxBookCtrlBase::DoGetBestSize().

If m_fitToCurrentPage is true, there is no need to iterate over all the pages
computing their max best size only in order to overwrite it with the best size
of the current page later.

This doesn't result in any changes in the behaviour, just avoids useless best
size computations.

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

11 years agoDo not unref GtkWidget of unattached wxMenuBar.
Vadim Zeitlin [Wed, 26 Sep 2012 22:30:00 +0000 (22:30 +0000)] 
Do not unref GtkWidget of unattached wxMenuBar.

This results in the destruction of the widgets of all of its menu and when
wxMenu objects are themselves destroyed in the base class dtor, we try to
destroy their already destroyed widgets, resulting in critical GTK warnings.

Simply don't do anything in wxMenuBar dtor itself if the menu bar is not
attached to a frame as the workaround was only needed in case of destroying
attached menu bars.

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

11 years agoFix GTK warnings when destroying unattached wxMenuBar.
Vadim Zeitlin [Wed, 26 Sep 2012 22:29:37 +0000 (22:29 +0000)] 
Fix GTK warnings when destroying unattached wxMenuBar.

Reset m_focusWidget to NULL when destroying m_widget in wxMenuBar dtor,
otherwise we try to use this already destroyed (because it's the same as
m_widget) widget in wxWindow dtor later resulting in critical GTK warnings.

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

11 years agoDon't crash in wxMenuBar::Remove() if unattached in wxGTK.
Vadim Zeitlin [Wed, 26 Sep 2012 22:29:14 +0000 (22:29 +0000)] 
Don't crash in wxMenuBar::Remove() if unattached in wxGTK.

It should be possible to remove a menu from a menu bar even before it is
attached to a frame without crashing.

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

11 years agoUpdate MSW installation instructions for 2.9.
Vadim Zeitlin [Wed, 26 Sep 2012 12:20:30 +0000 (12:20 +0000)] 
Update MSW installation instructions for 2.9.

Remove all mentions of 16 bit build.

Update the list of supported compilers and their versions.

Update Unicode build description.

Closes #11908.

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

11 years agoMerge "selected" and "active" child in wxAuiMDIParentFrame.
Vadim Zeitlin [Wed, 26 Sep 2012 12:20:07 +0000 (12:20 +0000)] 
Merge "selected" and "active" child in wxAuiMDIParentFrame.

They are one and the same thing and so just make them really synonymous
instead of (unsuccessfully) trying to keep them synchronized.

Closes #14684.

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

11 years agoReserve the whole style byte for styles. See #14688
Robin Dunn [Tue, 25 Sep 2012 23:53:40 +0000 (23:53 +0000)] 
Reserve the whole style byte for styles.  See #14688

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

11 years agoScintilla's Point class no longer matches the structure of wxPoint, so we need to...
Robin Dunn [Tue, 25 Sep 2012 23:53:14 +0000 (23:53 +0000)] 
Scintilla's Point class no longer matches the structure of wxPoint, so we need to copy points to a wxPoint array instead of just typcasting Scintilla's array.  Fixes #14687

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

11 years agoFixed interface typo breaking wxRibbonBar docs (from r72495).
Bryan Petty [Tue, 25 Sep 2012 20:40:01 +0000 (20:40 +0000)] 
Fixed interface typo breaking wxRibbonBar docs (from r72495).

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

11 years agocall Thaw() instead of DoThaw() so frozen status will be properly updated, and use...
Paul Cornett [Tue, 25 Sep 2012 18:01:04 +0000 (18:01 +0000)] 
call Thaw() instead of DoThaw() so frozen status will be properly updated, and use a loop in case window has been frozen more than once

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

11 years agofix deleting a frozen multi-line wxTextCtrl, see #13543
Paul Cornett [Tue, 25 Sep 2012 17:55:00 +0000 (17:55 +0000)] 
fix deleting a frozen multi-line wxTextCtrl, see #13543

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

11 years agoAttempt to fix wxHelpControllerBase::SetFrameParameters() documentation.
Vadim Zeitlin [Tue, 25 Sep 2012 13:50:07 +0000 (13:50 +0000)] 
Attempt to fix wxHelpControllerBase::SetFrameParameters() documentation.

Don't use "%s" in the brief comment, "%" is apparently not allowed there.

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

11 years agoadding constants for newer OSX versions to make sure our conditional expressions...
Stefan Csomor [Tue, 25 Sep 2012 13:08:37 +0000 (13:08 +0000)] 
adding constants for newer OSX versions to make sure our conditional expressions are working with earlier SDKs

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

11 years agoAdd wxGenericAboutDialog documentation.
Vadim Zeitlin [Tue, 25 Sep 2012 10:50:31 +0000 (10:50 +0000)] 
Add wxGenericAboutDialog documentation.

Closes #14660.

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

11 years agoFix too hastily copy-pasted wxVariantDataSafeArray documentation.
Vadim Zeitlin [Tue, 25 Sep 2012 10:50:07 +0000 (10:50 +0000)] 
Fix too hastily copy-pasted wxVariantDataSafeArray documentation.

Some parts were not updated after copying them from wxVariantDataErrorCode.

Closes #14689.

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

11 years agoReally fix stack dumps for asserts and wxStackWalker::Walk() calls.
Vadim Zeitlin [Tue, 25 Sep 2012 10:49:45 +0000 (10:49 +0000)] 
Really fix stack dumps for asserts and wxStackWalker::Walk() calls.

The code apparently tried to compensate for the wrong "skip" values used in
the calls to wxStackWalker::Walk() by skipping too much in Walk() itself which
was wrong as it dropped the frames that should have been shown.

Fix this by skipping only the one extra (compared to Walk() itself) frame we
add in wxStackWalker Unix implementation and not 3 of them and do skip more
frames when calling Walk() from assert failure handlers.

Also fix the wrong number of frames used in ProcessFrames(): we must not
subtract the number of skipped frames, they were already skipped.

Closes #14690.

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

11 years agoUse utf8_str(), not mb_str(), for strings passed to GTK+.
Vadim Zeitlin [Tue, 25 Sep 2012 10:49:22 +0000 (10:49 +0000)] 
Use utf8_str(), not mb_str(), for strings passed to GTK+.

All GTK+ strings must be encoded in UTF-8, not whichever encoding the current
locale happens to use.

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

11 years agoVietnamese translations update from Trần Ngọc Quân.
Vadim Zeitlin [Tue, 25 Sep 2012 10:48:56 +0000 (10:48 +0000)] 
Vietnamese translations update from Trần Ngọc Quân.

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

11 years agoImprove SAFEARRAY support in wxMSW OLE Automation code.
Vadim Zeitlin [Sun, 23 Sep 2012 22:49:50 +0000 (22:49 +0000)] 
Improve SAFEARRAY support in wxMSW OLE Automation code.

Add a new wxSafeArray<> class wrapping SAFEARRAY.

Also add support for converting VARIANTs containing other, previously
unsupported, standard types.

Closes #14637.

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

11 years agoExplain EVT_CONTEXT_MENU generation in more details.
Vadim Zeitlin [Sun, 23 Sep 2012 22:49:24 +0000 (22:49 +0000)] 
Explain EVT_CONTEXT_MENU generation in more details.

Document that you should not count on specific order of mouse right button and
context menu events.

Closes #12535.

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

11 years agoNo changes, just reuse a bit of code in wxMSW wxMDIParentFrame.
Vadim Zeitlin [Sun, 23 Sep 2012 22:49:01 +0000 (22:49 +0000)] 
No changes, just reuse a bit of code in wxMSW wxMDIParentFrame.

Call wxMDIChildFrame::Activate() instead of redoing the same thing. This also
ensures that iconized MDI children are restored before being activated (see
previous commit).

See #13946.

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

11 years agoRestore an iconized MDI child frame when activating it.
Vadim Zeitlin [Sun, 23 Sep 2012 22:48:39 +0000 (22:48 +0000)] 
Restore an iconized MDI child frame when activating it.

Without doing this activating an iconized frame doesn't do anything at all,
i.e. doesn't present it to the user as presumably intended.

Closes #13946.

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

11 years agoCorrect best size computation for wxCheckBox with borders under MSW.
Vadim Zeitlin [Sun, 23 Sep 2012 22:48:16 +0000 (22:48 +0000)] 
Correct best size computation for wxCheckBox with borders under MSW.

As wxCheckBox can now have borders (see previous commit), we must override
DoGetBestClientSize() and not DoGetBestSize() in it to take account of them.

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

11 years agoRespect styles translated to WS_EX_XXX in wxMSW wxCheckBox and wxRadioButton.
Vadim Zeitlin [Sun, 23 Sep 2012 22:47:52 +0000 (22:47 +0000)] 
Respect styles translated to WS_EX_XXX in wxMSW wxCheckBox and wxRadioButton.

Take into account the window styles that translate to extended Windows styles
at MSW level.

Also override MSWGetStyle() in these classes, just as in most (all?) other
ones, for consistency instead of doing wx-to-MSW styles translation directly
in Create().

Notice that as a side effect of this change, border styles now work for
wxCheckBox which wasn't the case before. It's not clear if this is really
wanted but OTOH there doesn't seem to be any real reason to forbid them
neither.

Closes #14674.

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

11 years agoAllow wxWrapSizer to request more size than it used previously.
Vadim Zeitlin [Sat, 22 Sep 2012 16:16:52 +0000 (16:16 +0000)] 
Allow wxWrapSizer to request more size than it used previously.

The code in wxWrapSizer::CalcMin() ensured that the sizer never requested more
space than what it had been already given which, while clearly done
intentionally, seems to be wrong because it can never end up with enough space
for all its rows/columns unless it is set to up to expand in the containing
sizer.

In other words, the old code could return the size which was not enough to
show the sizer contents fully which is against CalcMin() contract.

Change this by simply removing the check for the new minimal size being less
than the old one. This allows the wrap sizer demo in the layout sample to work
correctly whereas before the sizer contents was completely invisible initially.

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

11 years agoMake wxWrapSizer demo in the layout sample more dynamic.
Vadim Zeitlin [Sat, 22 Sep 2012 16:16:30 +0000 (16:16 +0000)] 
Make wxWrapSizer demo in the layout sample more dynamic.

Allow adding checkboxes to and removing them from the wrap sizer to
demonstrate how it adjusts to its contents dynamically.

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

11 years agoCredit "sodev" with correct full name.
Vadim Zeitlin [Sat, 22 Sep 2012 16:16:07 +0000 (16:16 +0000)] 
Credit "sodev" with correct full name.

Amend the change log entry of r71701.

See #14380.

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

11 years agoFix crash on wxMediaCtrl creation in wxMSW.
Vadim Zeitlin [Fri, 21 Sep 2012 10:26:18 +0000 (10:26 +0000)] 
Fix crash on wxMediaCtrl creation in wxMSW.

A valid RECT pointer must be passed to DoVerb(OLEIVERB_INPLACEACTIVATE) but
r72027 (see #14209) broke this and passed it NULL resulting in an instant
crash.

Revert this part of the change and do pass out window client area.

Closes #14682.

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

11 years agoFix wxPluginLibrary wxClassInfo pointers initialization.
Vadim Zeitlin [Thu, 20 Sep 2012 23:12:51 +0000 (23:12 +0000)] 
Fix wxPluginLibrary wxClassInfo pointers initialization.

The values of m_ourFirst and m_ourLast were inversed in wxPluginLibrary ctor.
Fix this and explain in a comment that "first" and "last" here refer to the
order in the linked list and not the chronological order.

Closes #14483.

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

11 years agoFix wrong configure test for abi::__forced_unwind in previous commit.
Vadim Zeitlin [Thu, 20 Sep 2012 23:12:28 +0000 (23:12 +0000)] 
Fix wrong configure test for abi::__forced_unwind in previous commit.

The previous commit was accidental and contained an initial version of the
patch which didn't test for NPTL abi::__forced_unwind correctly and just
tested whether cxxabi.h header was available.

Tighten the check to work on the other systems and check for __forced_unwind
existence itself.

Also check for cxxabi.h before testing for __cxa_demangle as there is no need
to try to compile another test program if we already know that this entire
header is unavailable anyhow.

See #14626.

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

11 years agoRethrow abi::__forced_unwind in wxThread code under Unix.
Vadim Zeitlin [Thu, 20 Sep 2012 23:00:44 +0000 (23:00 +0000)] 
Rethrow abi::__forced_unwind in wxThread code under Unix.

We must always rethrow the special abi::__forced_unwind exception when
handling exception in threads under Linux as the NPTL simply terminates the
process at first opportunity if this exception is not rethrown.

See http://udrepper.livejournal.com/21541.html for more details.

Closes #14626.

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

11 years agoAdd public (but not documented) wxCheckBox::MSWMakeOwnerDrawn().
Vadim Zeitlin [Thu, 20 Sep 2012 22:15:37 +0000 (22:15 +0000)] 
Add public (but not documented) wxCheckBox::MSWMakeOwnerDrawn().

It can be useful to explicitly make a check box owner drawn, so make the
private MakeOwnerDrawn() public and add "MSW" prefix to it to allow doing this
from the user code.

Closes #14679.

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

11 years agoFix and enhance support for client data in wxRibbonButtonBar.
Vadim Zeitlin [Thu, 20 Sep 2012 20:02:25 +0000 (20:02 +0000)] 
Fix and enhance support for client data in wxRibbonButtonBar.

Add the possibility to retrieve the client data associated with a button and
not only set it (which wasn't very useful on its own).

Also allow having both typed (owned) and untyped (not owned) client data, as
in the other wxWidgets controls.

To avoid confusion between two different kinds of data, remove "client_data"
argument from the functions adding buttons and provide separate methods with
distinct names for setting and getting client data.

Closes #14630.

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

11 years agoAdd wxRibbonButtonBarEvent::GetButton().
Vadim Zeitlin [Thu, 20 Sep 2012 20:02:02 +0000 (20:02 +0000)] 
Add wxRibbonButtonBarEvent::GetButton().

Allow to retrieve the button associated with the given button bar event.

See #14630.

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

11 years agoAdd wxRibbonButtonBar::GetActiveItem() and GetHoveredItem().
Vadim Zeitlin [Thu, 20 Sep 2012 20:01:36 +0000 (20:01 +0000)] 
Add wxRibbonButtonBar::GetActiveItem() and GetHoveredItem().

Add accessors for the button being currently clicked or hovered over.

See #14630.

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

11 years agoAdd wxRibbonButtonBar::GetItem(), GetItemById() and GetItemId().
Vadim Zeitlin [Thu, 20 Sep 2012 20:01:12 +0000 (20:01 +0000)] 
Add wxRibbonButtonBar::GetItem(), GetItemById() and GetItemId().

Allow accessing the ribbon bar buttons either by index or ID.

See #14630.

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

11 years agoFix alpha handling in Scintilla when not using wxGraphicsContext.
Vadim Zeitlin [Thu, 20 Sep 2012 20:00:48 +0000 (20:00 +0000)] 
Fix alpha handling in Scintilla when not using wxGraphicsContext.

When using raw bitmap data access classes such as wxAlphaPixelData we must
destroy them to ensure that the changes done via them are committed to the
bitmap before drawing the bitmap.

Just add an extra block (the diff should be viewed ignoring white space to see
the only significant change) to ensure that wxAlphaPixelData is destroyed
before DrawBitmap() is called.

Closes #14680.

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

11 years agoDocument ShowWithoutActivating
Robin Dunn [Thu, 20 Sep 2012 16:42:27 +0000 (16:42 +0000)] 
Document ShowWithoutActivating

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

11 years agoMake it possible to TAB-navigate among wxStaticBox children.
Vadim Zeitlin [Thu, 20 Sep 2012 16:00:07 +0000 (16:00 +0000)] 
Make it possible to TAB-navigate among wxStaticBox children.

As wxStaticBox can now contain child windows, derive it from
wxNavigationEnabled<> to allow TAB-navigating among them. Without this, it was
impossible to switch focus from keyboard to any of the controls inside
wxStaticBox.

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

11 years agoNo real changes, just remove an unnecessary variable assignment.
Vadim Zeitlin [Thu, 20 Sep 2012 15:47:03 +0000 (15:47 +0000)] 
No real changes, just remove an unnecessary variable assignment.

Initialize m_gtk_model with its correct value immediately, without setting it
to NULL first.

Closes #14673.

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

11 years agoBetter documentation for wxRect::Set{Left,Top}().
Vadim Zeitlin [Thu, 20 Sep 2012 15:46:40 +0000 (15:46 +0000)] 
Better documentation for wxRect::Set{Left,Top}().

These functions also change the rectangle right/bottom position, unlike
Set{Right,Bottom}() that change its width/height respectively. This is not
very logical but impossible to change for compatibility reasons, so at least
document it clearly.

Closes #14678.

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