]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agocompile fix for GTK2 systems which have X11/extensions/xf86vmode.h
Paul Cornett [Sun, 23 May 2010 16:31:33 +0000 (16:31 +0000)] 
compile fix for GTK2 systems which have X11/extensions/xf86vmode.h

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

14 years agoRemove non-working or semi-working tests added from console.cpp.
Vadim Zeitlin [Sun, 23 May 2010 10:53:17 +0000 (10:53 +0000)] 
Remove non-working or semi-working tests added from console.cpp.

Remove tests added in r64324, there is no need to have commented out code
here and UTF-8 test was pretty strange as well (it's far from clear what
should the result of converting "utf8Invalid" be).

This also suppresses a warning that these changes introduced.

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

14 years agoAdded wxMessageQueue::Clear().
Vadim Zeitlin [Sat, 22 May 2010 16:14:16 +0000 (16:14 +0000)] 
Added wxMessageQueue::Clear().

This method can be called from the posting thread to remove any still pending
requests if they became unnecessary.

Closes #10905.

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

14 years agoFix for user input processing in wxProgressDialog.
Vadim Zeitlin [Sat, 22 May 2010 16:14:11 +0000 (16:14 +0000)] 
Fix for user input processing in wxProgressDialog.

Yield for input event processing before updating the dialog instead of doing
it after this as the latter apparently doesn't always work.

Closes #10645.

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

14 years agoUse GTK+ functions for wxDisplay implementation.
Vadim Zeitlin [Sat, 22 May 2010 15:48:59 +0000 (15:48 +0000)] 
Use GTK+ functions for wxDisplay implementation.

There is no need to use Xinerama for what GDK can do itself (see #11053).

Also don't check for Xinerama in configure when using wxGTK2.

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

14 years agoRestore selection on click in row/column selection mode in wxGrid.
Vadim Zeitlin [Sat, 22 May 2010 15:43:00 +0000 (15:43 +0000)] 
Restore selection on click in row/column selection mode in wxGrid.

This might be less consistent with the other selection modes but seems to be
more convenient in practice, so restore the old, 2.8 behaviour and select the
entire row/column on a simply click in row/column selection mode.

Closes #12062.

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

14 years agoModify wxBoxSizer minimal size calculations to respect the proportions.
Vadim Zeitlin [Sat, 22 May 2010 14:57:34 +0000 (14:57 +0000)] 
Modify wxBoxSizer minimal size calculations to respect the proportions.

Make wxBoxSizer minimal size big enough to not only give each item enough
space to satisfy its minimal size but also to respect the proportions among
the items by default.

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

14 years agoSet wild card in the base class too in wxGTK wxFileDialog.
Vadim Zeitlin [Sat, 22 May 2010 12:07:54 +0000 (12:07 +0000)] 
Set wild card in the base class too in wxGTK wxFileDialog.

Calling wxFileDialogBase::SetWildcard() ensures that GetWildcard() returns the
correct value after wxFileDialog::SetWildcard() was called.

The new code will also work correctly if we change SetWildcard() to handle
empty wildcard as the default one (see #12079).

Closes #12080.

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

14 years agoCorrect notebook sample layout.
Vadim Zeitlin [Sat, 22 May 2010 11:58:50 +0000 (11:58 +0000)] 
Correct notebook sample layout.

Use a sizer for the frame to make sure its initial and minimal size correspond
to the best size of the panel inside it. Also add a Layout() call on the panel
which was somehow not done initially. And finally don't centre the frame, this
is unnecessary.

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

14 years agoUnset the debug report preview dialog as critical window when it's hidden.
Vadim Zeitlin [Sat, 22 May 2010 10:51:27 +0000 (10:51 +0000)] 
Unset the debug report preview dialog as critical window when it's hidden.

Otherwise no events can be dispatched to any other window after
wxDebugReportPreviewStd::Show() is called, resulting in apparent hanging of
the application as can be seen in debugrpt sample.

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

14 years agoSecond try to get wxDataViewChoiceByIndex and its name right, hopefully fixes #11970...
Robert Roebling [Fri, 21 May 2010 20:13:49 +0000 (20:13 +0000)] 
Second try to get wxDataViewChoiceByIndex and its name right, hopefully fixes #11970: wxDataViewChoiceRenderer set/get methods should use the current selection
index not a string

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

14 years agoDocument wxDocManager::CloseDocument().
Vadim Zeitlin [Fri, 21 May 2010 15:25:43 +0000 (15:25 +0000)] 
Document wxDocManager::CloseDocument().

CloseDocuments() was documented but not CloseDocument(), this probably wasn't
intentional.

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

14 years agoMinor corrections to wxFont size-changing methods.
Vadim Zeitlin [Fri, 21 May 2010 13:17:36 +0000 (13:17 +0000)] 
Minor corrections to wxFont size-changing methods.

Closes #11959.

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

14 years agoErase the column label background in wxGrid to avoid display artefacts.
Vadim Zeitlin [Fri, 21 May 2010 13:17:30 +0000 (13:17 +0000)] 
Erase the column label background in wxGrid to avoid display artefacts.

Apparently the column label text is not always drawn correctly when double
buffering is used, so erase the background completely before drawing the text.

Unfortunately this might result in flicker but presumably correct display is
more important.

Closes #12055.

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

14 years agoUse ListView_CancelEditLabel() to implement wxListCtrl::EndEditLabel().
Vadim Zeitlin [Fri, 21 May 2010 13:17:25 +0000 (13:17 +0000)] 
Use ListView_CancelEditLabel() to implement wxListCtrl::EndEditLabel().

Windows XP and later finally added a special message to cancel label editing,
use it if available.

Also improve the documentation of this method.

See #7663.

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

14 years agoAlways define SIZEOF_WCHAR_T if it's not defined under Windows.
Vadim Zeitlin [Fri, 21 May 2010 12:52:12 +0000 (12:52 +0000)] 
Always define SIZEOF_WCHAR_T if it's not defined under Windows.

The assumption that SIZEOF_EVERYTHING_ELSE is defined when SIZEOF_INT is is
wrong. While wxWidgets configure does define all SIZEOF_XXX at once,
SIZEOF_INT could also be defined in some third party headers (e.g. Python.h)
and we still need to define the other ones.

In particular, doing this fixes the problem with SIZEOF_WCHAR_T not being
defined during wxPython build.

Closes #12013.

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

14 years agoSimplify and correct MSW selection of background brush for children painting.
Vadim Zeitlin [Fri, 21 May 2010 12:51:20 +0000 (12:51 +0000)] 
Simplify and correct MSW selection of background brush for children painting.

Check for the transparency of the window background in MSWGetBgBrush() itself
and let MSWGetBgBrushForChild() just return the brush to be used.

This required adding a MSW-specific hack to wxPanel to allow inheriting
background of wxNotebook by its children which is slightly ugly but is exactly
what we need to do in this case and makes the rest of the code much simpler.

Also add a possibility to set the background of the page containing the
control being tested to the widgets sample to test for background inheritance.
This shows problems with wxSlider and wxRadioBox backgrounds but they're not
new with this patch.

Closes #12057.

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

14 years agoFix focus debugging in the controls sample.
Vadim Zeitlin [Fri, 21 May 2010 12:51:14 +0000 (12:51 +0000)] 
Fix focus debugging in the controls sample.

A wrong format string was used in Printf() resulting in useless output.

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

14 years agoYet another fix to event propagation in scrolled windows.
Vadim Zeitlin [Fri, 21 May 2010 12:07:45 +0000 (12:07 +0000)] 
Yet another fix to event propagation in scrolled windows.

Calling ProcessEventLocally() didn't work because the command events were not
propagated to the parent window any more, breaking a lot of things including
wxDataViewCtrl event generation in the generic version. So do restore
ProcessEvent() call but use it on the next handler (i.e. the window itself)
and not this one now. This still results in some duplicate calls but at least
the events should be passed everywhere where they are expected to arrive.

wxScrollHelperEvtHandler must die.

Closes #12078.

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

14 years agoFix cast from pointer to int in wxDataViewCtrl.
Vadim Zeitlin [Fri, 21 May 2010 11:46:13 +0000 (11:46 +0000)] 
Fix cast from pointer to int in wxDataViewCtrl.

This fixes compilation in 64 bit.

Closes #12073.

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

14 years agoFix wxListCtrl::EndEditLabel() which simply didn't work.
Vadim Zeitlin [Thu, 20 May 2010 22:04:03 +0000 (22:04 +0000)] 
Fix wxListCtrl::EndEditLabel() which simply didn't work.

Also document it (even though it's wxMSW-only for now) and add a test for it
in the sample.

Closes #7663.

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

14 years agofixing infinite recursion
Stefan Csomor [Thu, 20 May 2010 19:30:58 +0000 (19:30 +0000)] 
fixing infinite recursion

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

14 years agodef include was missing
Stefan Csomor [Thu, 20 May 2010 18:50:39 +0000 (18:50 +0000)] 
def include was missing

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

14 years agoadding more infos, links
Stefan Csomor [Thu, 20 May 2010 18:43:55 +0000 (18:43 +0000)] 
adding more infos, links

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

14 years agoMake GetIndexOf() and get_path() work for virtual list models, fixes #12073: wxDataVi...
Robert Roebling [Thu, 20 May 2010 18:39:20 +0000 (18:39 +0000)] 
Make GetIndexOf() and get_path() work for virtual list models, fixes #12073: wxDataViewCtrl crashes when deleting an item

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

14 years agoadding building iphone projects
Stefan Csomor [Thu, 20 May 2010 18:06:59 +0000 (18:06 +0000)] 
adding building iphone projects

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

14 years agosupport compiling for iphone
Stefan Csomor [Thu, 20 May 2010 17:58:38 +0000 (17:58 +0000)] 
support compiling for iphone

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

14 years agoadding all iphone files
Stefan Csomor [Thu, 20 May 2010 17:56:39 +0000 (17:56 +0000)] 
adding all iphone files

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

14 years agoFix wxScrollHelperEvtHandler broken by recent changes to event processing.
Vadim Zeitlin [Thu, 20 May 2010 17:33:26 +0000 (17:33 +0000)] 
Fix wxScrollHelperEvtHandler broken by recent changes to event processing.

Use ProcessEventLocally() added in r64261 (which was probably the one to break
this) to forward event to the window itself instead of ProcessEvent() in
wxScrollHelperEvtHandler::ProcessEvent() implementation. Calling ProcessEvent()
didn't work any more in a case when another event handler was pushed on a
wxScrolledWindow: in this case the EVT_SIZE and EVT_PAINT handlers defined in
the window itself were not called at all any more.

Add a unit test checking for the even more tortuous than usual event
processing path in this particular case.

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

14 years agoadding support for iphone
Stefan Csomor [Thu, 20 May 2010 16:36:16 +0000 (16:36 +0000)] 
adding support for iphone

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

14 years agofixing copy paste error
Stefan Csomor [Thu, 20 May 2010 12:39:08 +0000 (12:39 +0000)] 
fixing copy paste error

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

14 years agoadapting to new API
Stefan Csomor [Thu, 20 May 2010 12:06:48 +0000 (12:06 +0000)] 
adapting to new API

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

14 years agoutils_osx isn't part of base but of core, moving wxMacWakeUp to a file that really...
Stefan Csomor [Thu, 20 May 2010 06:09:10 +0000 (06:09 +0000)] 
utils_osx isn't part of base but of core, moving wxMacWakeUp to a file that really is in base

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

14 years agoDocument that wxWindow::FindWindowByXXX() functions may return NULL.
Vadim Zeitlin [Wed, 19 May 2010 21:03:49 +0000 (21:03 +0000)] 
Document that wxWindow::FindWindowByXXX() functions may return NULL.

This seems obvious but apparently isn't completely so to everybody.

Closes #12074.

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

14 years agonot needed anymore
Stefan Csomor [Wed, 19 May 2010 13:39:56 +0000 (13:39 +0000)] 
not needed anymore

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

14 years agomoving wxMacWakeUp outside COCOA_CARBON clause, fixes #12068
Stefan Csomor [Wed, 19 May 2010 13:38:19 +0000 (13:38 +0000)] 
moving wxMacWakeUp outside COCOA_CARBON clause, fixes #12068

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

14 years agoDocument wxHTTP::SetPostBuffer().
Vadim Zeitlin [Wed, 19 May 2010 12:36:36 +0000 (12:36 +0000)] 
Document wxHTTP::SetPostBuffer().

Closes #12040.

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

14 years agoNo changes, just add a comment.
Vadim Zeitlin [Wed, 19 May 2010 12:36:32 +0000 (12:36 +0000)] 
No changes, just add a comment.

There is no need to reproduce wxBase64Encode() in wxHTTP code, should just use
the existing function instead.

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

14 years agoDocument wxHTTP::Connect(wxSockAddress) overload.
Vadim Zeitlin [Wed, 19 May 2010 12:36:28 +0000 (12:36 +0000)] 
Document wxHTTP::Connect(wxSockAddress) overload.

See #12040.

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

14 years agosplitting methods
Stefan Csomor [Wed, 19 May 2010 08:27:35 +0000 (08:27 +0000)] 
splitting methods

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

14 years agocommon wxMacWakeUp code across all platforms
Stefan Csomor [Wed, 19 May 2010 08:26:59 +0000 (08:26 +0000)] 
common wxMacWakeUp code across all platforms

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

14 years agocommon wxMacWakeUp code across all platforms
Stefan Csomor [Wed, 19 May 2010 08:25:48 +0000 (08:25 +0000)] 
common wxMacWakeUp code across all platforms

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

14 years agoadding methoddefs
Stefan Csomor [Wed, 19 May 2010 07:25:46 +0000 (07:25 +0000)] 
adding methoddefs

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

14 years agoset default resolutions in case of errors
Stefan Csomor [Wed, 19 May 2010 07:24:16 +0000 (07:24 +0000)] 
set default resolutions in case of errors

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

14 years agousing wx dynamic cast
Stefan Csomor [Wed, 19 May 2010 07:23:33 +0000 (07:23 +0000)] 
using wx dynamic cast

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

14 years agoremoving unused var
Stefan Csomor [Wed, 19 May 2010 07:21:34 +0000 (07:21 +0000)] 
removing unused var

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

14 years agomissing commit, fixes #12067
Stefan Csomor [Wed, 19 May 2010 07:18:23 +0000 (07:18 +0000)] 
missing commit, fixes #12067

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

14 years agoAdd AM_PATH_WXRC to wxwin.m4 for backwards compatibility.
Vadim Zeitlin [Tue, 18 May 2010 10:29:58 +0000 (10:29 +0000)] 
Add AM_PATH_WXRC to wxwin.m4 for backwards compatibility.

Although the new WXRC_CHECK is preferred, still allow using AM_PATH_WXRC for
the applications which need to build in both 2.8 and 2.9 environments.

Closes #12069.

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

14 years agoCompilation fix for wxUSE_LOG_DEBUG==0 case.
Vadim Zeitlin [Tue, 18 May 2010 10:29:52 +0000 (10:29 +0000)] 
Compilation fix for wxUSE_LOG_DEBUG==0 case.

Don't do anything in wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD() if we don't
use debug logging anyhow.

Closes #12070.

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

14 years agoAdded quick implementation of wxDataViewChoiceByIndexRenderer, closes #11970 (wxDataV...
Robert Roebling [Sun, 16 May 2010 15:52:35 +0000 (15:52 +0000)] 
Added quick implementation of wxDataViewChoiceByIndexRenderer, closes #11970 (wxDataViewChoiceRenderer set/get methods should use the current selection index

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

14 years agoremove TestTimer() (adds nothing to existing tests) and move wxStopWatch tests to...
Francesco Montorsi [Sun, 16 May 2010 15:44:17 +0000 (15:44 +0000)] 
remove TestTimer() (adds nothing to existing tests) and move wxStopWatch tests to a new CppUnit test.

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

14 years agoNo-PCH compilation fix
Robert Roebling [Sun, 16 May 2010 15:36:14 +0000 (15:36 +0000)] 
No-PCH compilation fix

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

14 years agomove TestUtf8() and TestEncodingConverter() functions to UnicodeTestCase. Disable...
Francesco Montorsi [Sun, 16 May 2010 15:32:41 +0000 (15:32 +0000)] 
move TestUtf8() and TestEncodingConverter() functions to UnicodeTestCase. Disable some code which does not run clean and mark it with FIXME comments (needs revision).

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

14 years agoPart II of: Add GetChoice() and GetChoices() getters to all choice renderers and...
Robert Roebling [Sun, 16 May 2010 15:29:35 +0000 (15:29 +0000)] 
Part II of: Add GetChoice() and GetChoices() getters to all choice renderers and actually mention it in the docs

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

14 years agoAdd GetChoice() and GetChoices() getters to all choice renderers and actually mention...
Robert Roebling [Sun, 16 May 2010 15:26:57 +0000 (15:26 +0000)] 
Add GetChoice() and GetChoices() getters to all choice renderers and actually mention it in the docs

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

14 years agoremove ZIP tests: they seem to have been greatly expanded and enhanced by tests/archi...
Francesco Montorsi [Sun, 16 May 2010 14:53:11 +0000 (14:53 +0000)] 
remove ZIP tests: they seem to have been greatly expanded and enhanced by tests/archive/archive.cpp and tests/archive/ziptest.cpp

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

14 years agoDon't call super class explicitly so overriding is possible, closes #12025 (wxDataVie...
Robert Roebling [Sun, 16 May 2010 14:44:58 +0000 (14:44 +0000)] 
Don't call super class explicitly so overriding is possible, closes #12025 (wxDataViewVirtualListModel calls super-class' version of certain virtual methods).

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

14 years agoremove wxDateTime tests which were already extracted as tests/datetime/datetime.cpp...
Francesco Montorsi [Sun, 16 May 2010 14:36:16 +0000 (14:36 +0000)] 
remove wxDateTime tests which were already extracted as tests/datetime/datetime.cpp (keep only the interactive test)

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

14 years agomove TestTextInputStream() function in CppUnit's TextStreamTestCase class
Francesco Montorsi [Sun, 16 May 2010 14:31:00 +0000 (14:31 +0000)] 
move TestTextInputStream() function in CppUnit's TextStreamTestCase class

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

14 years agoApplied #11755: wxBitmapToggleButton Xml Handler
Robert Roebling [Sun, 16 May 2010 14:30:13 +0000 (14:30 +0000)] 
Applied #11755: wxBitmapToggleButton Xml Handler

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

14 years agoAllow calling iter_children with parent being NULL, hopefully fixes #12035 (wxDataVi...
Robert Roebling [Sun, 16 May 2010 14:23:07 +0000 (14:23 +0000)] 
Allow calling iter_children with parent being NULL, hopefully fixes  #12035 (wxDataViewCtrl crashes when selecting item)

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

14 years agoFix incorrect painting of backgrounds inside notebook.
Václav Slavík [Sun, 16 May 2010 13:21:03 +0000 (13:21 +0000)] 
Fix incorrect painting of backgrounds inside notebook.

Children without transparent background (e.g. wxListBox) were still
pained using notebook's background brush. They shouldn't, it should
apply only to transparent-bg controls.

This fix is not perfect, see #12057.

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

14 years agoMention that stock bitmaps are a wxGTK-only feature for now.
Vadim Zeitlin [Sun, 16 May 2010 12:31:57 +0000 (12:31 +0000)] 
Mention that stock bitmaps are a wxGTK-only feature for now.

Apparently people expect to see stock bitmaps under MSW too, make it clear
that they won't be used there.

See #12051.

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

14 years agoFix links to wxArtClient and wxArtID in the generated documentation.
Vadim Zeitlin [Sun, 16 May 2010 12:31:52 +0000 (12:31 +0000)] 
Fix links to wxArtClient and wxArtID in the generated documentation.

Add a "class" keyword to fix what looks like a bug in Doxygen.

Closes #12052.

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

14 years agoClip drawing in wxRendererGeneric::DrawHeaderButtonContents().
Vadim Zeitlin [Sat, 15 May 2010 11:15:09 +0000 (11:15 +0000)] 
Clip drawing in wxRendererGeneric::DrawHeaderButtonContents().

Clip drawing of the icon and bitmap to the header rectangle.

Don't clip the text because we already ellipsize it to avoid overflowing but
do the ellipsization correctly, using wxControl::Ellipsize() instead of the
simple (and wrong) duplicated version here.

Also correct and simplify the alignment calculations.

Closes #12047.

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

14 years agoDon't change the current pen and brush in DrawHeaderButtonContents().
Vadim Zeitlin [Sat, 15 May 2010 11:15:05 +0000 (11:15 +0000)] 
Don't change the current pen and brush in DrawHeaderButtonContents().

Renderer methods shouldn't affect the functions drawing on the DC after it but
the wxRendererGeneric implementation did.

Use wxDC{Pen,Brush}Changer classes instead of calling wxDC::Set{Pen,Brush}()
directly.

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

14 years agoAdd more tests for wxRendererNative::DrawHeaderButton().
Vadim Zeitlin [Sat, 15 May 2010 10:47:33 +0000 (10:47 +0000)] 
Add more tests for wxRendererNative::DrawHeaderButton().

Test using icons and bitmaps in it. Also show the native/default
implementation of this method and not only our overridden version.

See #12047.

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

14 years agoRemove wxGTK-specific text shift in wxRenderer::DrawHeaderButtonContents().
Vadim Zeitlin [Sat, 15 May 2010 10:47:28 +0000 (10:47 +0000)] 
Remove wxGTK-specific text shift in wxRenderer::DrawHeaderButtonContents().

This was probably related to the code removed by r63947 and doesn't seem to be
needed here neither (and could presumably result in the same problems as in
the ticket #11780).

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

14 years agoNever enable wxSpinCtrlGenericBase window itself at underlying toolkit level.
Vadim Zeitlin [Thu, 13 May 2010 15:31:35 +0000 (15:31 +0000)] 
Never enable wxSpinCtrlGenericBase window itself at underlying toolkit level.

We create wxSpinCtrlGenericBase window disabled at underlying toolkit level
(but enabled at the level of wxWidgets API, of course), but calling Disable()
and Enable() on it re-enabled it resulting in loss of mouse events under
Windows.

Don't re-enable it (again, at the low-level toolkit level only) in its
Enable() any more but keep this window itself always disabled.

Closes #12045.

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

14 years agoUse GetWidgets() in the widgets samples instead of GetWidget2().
Vadim Zeitlin [Thu, 13 May 2010 15:31:30 +0000 (15:31 +0000)] 
Use GetWidgets() in the widgets samples instead of GetWidget2().

Add a function which can be overridden to return an arbitrary number of
widgets instead of having just GetWidget() and GetWidget2(): spin control page
already uses 3 widgets (and defines GetWidget3() which is never called) and we
could have even more in the future. Just use a generic solution which will
always work.

The practical consequence of this is that the "Enable/Disable" menu item now
also enables and disables the wxSpinCtrlDouble in the spin page, see #12045.

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

14 years agoNo changes, just cleanup the image part of the docview sample.
Vadim Zeitlin [Thu, 13 May 2010 14:37:06 +0000 (14:37 +0000)] 
No changes, just cleanup the image part of the docview sample.

Remove unnecessary, never used methods.

Don't use pointers when objects or references can be used more safely.

Don't name classes which are not part of wx with "wx" prefix to avoid
confusing people.

Don't define empty unnecessary event tables.

Prefer wxScrolledWindow::SetVirtualSize() to SetScrollbars().

Stop using "protected" when "private" should be used.

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

14 years agoDocument wxDocument::DeleteContents().
Vadim Zeitlin [Thu, 13 May 2010 14:37:00 +0000 (14:37 +0000)] 
Document wxDocument::DeleteContents().

This method purpose was not quite clear as it was only mentioned in passing in
documentation of OnCloseDocument() but not really documented itself.

Also don't call it from wxDocument dtor as this is useless: the user-defined
overridden version will never be called from here and the base class version
does nothing.

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

14 years agoMake text drawn by wxGraphicsContext slightly less intrusive
Jaakko Salli [Thu, 13 May 2010 08:36:37 +0000 (08:36 +0000)] 
Make text drawn by wxGraphicsContext slightly less intrusive

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

14 years agoAdded wxGraphicsContext::Create(const wxEnhMetaFileDC& dc) so that wxPrintPreview...
Jaakko Salli [Thu, 13 May 2010 08:22:36 +0000 (08:22 +0000)] 
Added wxGraphicsContext::Create(const wxEnhMetaFileDC& dc) so that wxPrintPreview can work with wxMSW's wxGraphicsContext (closes #12028)

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

14 years agoAdd missing check for wxUSE_FILE_HISTORY existence.
Václav Slavík [Thu, 13 May 2010 06:25:33 +0000 (06:25 +0000)] 
Add missing check for wxUSE_FILE_HISTORY existence.

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

14 years agoRefactor wxDocParentFrame and wxDocMDIParentFrame to share common base class.
Vadim Zeitlin [Wed, 12 May 2010 14:34:18 +0000 (14:34 +0000)] 
Refactor wxDocParentFrame and wxDocMDIParentFrame to share common base class.

Use the same approach as for the child frames: add a base template class which
allows wxDocParentFrame to inherit from wxFrame and wxDocMDIParentFrame from
wxMDIParentFrame while still allowing to reuse the common code.

This reduces code duplication and should make implementing parent AUI document
frame easier as well, see #8945.

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

14 years agoRestore wxString::Printf() example showing position parameters in the docs.
Vadim Zeitlin [Wed, 12 May 2010 08:18:17 +0000 (08:18 +0000)] 
Restore wxString::Printf() example showing position parameters in the docs.

The example was lost during the translation of the manual to Doxygen.

Closes #12038.

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

14 years agoupdate the main page of the manual to be more consistent; update its date
Francesco Montorsi [Tue, 11 May 2010 21:25:17 +0000 (21:25 +0000)] 
update the main page of the manual to be more consistent; update its date

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

14 years agofix errors/inconsistencies pointed out by ifacecheck
Francesco Montorsi [Tue, 11 May 2010 21:12:10 +0000 (21:12 +0000)] 
fix errors/inconsistencies pointed out by ifacecheck

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

14 years agobetter error message when an inconsistency has been found
Francesco Montorsi [Tue, 11 May 2010 21:10:18 +0000 (21:10 +0000)] 
better error message when an inconsistency has been found

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

14 years agominor fixes to reduce number of Doxygen warnings
Francesco Montorsi [Tue, 11 May 2010 19:44:16 +0000 (19:44 +0000)] 
minor fixes to reduce number of Doxygen warnings

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

14 years agoimg tags need a final slash as they are empty tags; change <img> => <img/>
Francesco Montorsi [Tue, 11 May 2010 19:39:06 +0000 (19:39 +0000)] 
img tags need a final slash as they are empty tags; change <img> => <img/>

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

14 years agomake H3 titles center-aligned (fixes the display of the manual version for HTML docs...
Francesco Montorsi [Tue, 11 May 2010 19:37:29 +0000 (19:37 +0000)] 
make H3 titles center-aligned (fixes the display of the manual version for HTML docs which currently appears left-aligned)

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

14 years agoUpdate OpenVMS comiles support
Jouk Jansen [Tue, 11 May 2010 10:40:47 +0000 (10:40 +0000)] 
Update OpenVMS comiles support

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

14 years agoFix position for wxKeyEvents in wxMSW.
Vadim Zeitlin [Tue, 11 May 2010 10:39:42 +0000 (10:39 +0000)] 
Fix position for wxKeyEvents in wxMSW.

Use ScreenToClient() instead of painstakingly (and incorrectly) transforming
the position in this function itself.

Closes #12024.

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

14 years agofix for non-PCH builds; also use wxMilliSleep instead of wxThread::Sleep since the...
Francesco Montorsi [Tue, 11 May 2010 07:16:58 +0000 (07:16 +0000)] 
fix for non-PCH builds; also use wxMilliSleep instead of wxThread::Sleep since the former is more readable (it's clear that it takes milliseconds).

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

14 years agomove code testing wxThread classes from the console sample to a new CppUnit test
Francesco Montorsi [Mon, 10 May 2010 21:48:24 +0000 (21:48 +0000)] 
move code testing wxThread classes from the console sample to a new CppUnit test

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

14 years agoBuild fix: forgotten part of the previous commit.
Vadim Zeitlin [Mon, 10 May 2010 21:28:17 +0000 (21:28 +0000)] 
Build fix: forgotten part of the previous commit.

This commit should have been part of r64281.

Also notice that the previous commit message mentioned a wrong ticket number,
see #10572.

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

14 years agoAdd column parameter to wxListCtrl::GetItemText().
Vadim Zeitlin [Mon, 10 May 2010 21:22:16 +0000 (21:22 +0000)] 
Add column parameter to wxListCtrl::GetItemText().

Allow retrieving the text from columns other than the first one directly.

Add implementations for MSW and generic versions, documentation and a unit
test.

Closes #11597.

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

14 years agoChange wxDIALOG_NO_PARENT value to avoid clashing with wxCENTRE.
Vadim Zeitlin [Mon, 10 May 2010 21:10:03 +0000 (21:10 +0000)] 
Change wxDIALOG_NO_PARENT value to avoid clashing with wxCENTRE.

Use a bit freed by removing wxTINY_CAPTION_HORIZ for wxDIALOG_NO_PARENT. This
allows to move it out from the lower byte of the style word to avoid conflicts
with the button selection flags which can be commonly combined with the dialog
styles.

More precisely, wxDIALOG_NO_PARENT used to clash with wxCENTRE, meaning that
wxSingleChoiceDialog, for example, was always created without parent because
its default style included wxCENTRE. This commit fixes this particular bug and
probably more similar ones.

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

14 years agoReplace wxTINY_CAPTION_{HORIZ,VERT} with a single wxTINY_CAPTION.
Vadim Zeitlin [Mon, 10 May 2010 21:09:57 +0000 (21:09 +0000)] 
Replace wxTINY_CAPTION_{HORIZ,VERT} with a single wxTINY_CAPTION.

These two styles were always equivalent so we can just as well replace them
with a single one and stop wasting an extra bit.

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

14 years agoNo changes, just added comments summarizing the use of style bits.
Vadim Zeitlin [Mon, 10 May 2010 21:09:50 +0000 (21:09 +0000)] 
No changes, just added comments summarizing the use of style bits.

Add comments allowing to see more clearly the styles allocation.

Please make sure to amend them if you change any style values in the future.

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

14 years agoDon't use wxWindow::ClearBackground() in the image sample and explain why.
Vadim Zeitlin [Mon, 10 May 2010 21:02:30 +0000 (21:02 +0000)] 
Don't use wxWindow::ClearBackground() in the image sample and explain why.

Painting on both wxPaintDC and wxClientDC simultaneously doesn't work well,
e.g. under Windows the client DC can be actually erased after we finished
painting the window contents, overwriting it.

Simply use wxDC::Clear() instead of wxWindow::ClearBackground() to avoid this
and document the danger of using ClearBackground() from EVT_PAINT handler.

Closes #10700.

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

14 years agoMake text printed by wxGraphicsContext shorter
Jaakko Salli [Mon, 10 May 2010 14:16:07 +0000 (14:16 +0000)] 
Make text printed by wxGraphicsContext shorter

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

14 years agoUse wxGraphicsContext to draw some text and a rectangle around it (so that GetTextExt...
Jaakko Salli [Mon, 10 May 2010 14:14:35 +0000 (14:14 +0000)] 
Use wxGraphicsContext to draw some text and a rectangle around it (so that GetTextExtent() can be verified to work correctly)

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

14 years agoIn wxGDIPlusContext::GetTextExtent(), return more accurate text height if possible
Jaakko Salli [Mon, 10 May 2010 13:54:20 +0000 (13:54 +0000)] 
In wxGDIPlusContext::GetTextExtent(), return more accurate text height if possible

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

14 years agoSet wxGraphicsContext page scale, which is required for printing to work properly
Jaakko Salli [Mon, 10 May 2010 13:52:12 +0000 (13:52 +0000)] 
Set wxGraphicsContext page scale, which is required for printing to work properly

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

14 years agoReplace public wxEvtHandler::ProcessEventHere() with private TryHere().
Vadim Zeitlin [Sun, 9 May 2010 14:55:46 +0000 (14:55 +0000)] 
Replace public wxEvtHandler::ProcessEventHere() with private TryHere().

ProcessEventHere() doesn't have to be public any more now that we have
ProcessEventLocally() which is safe to call from the outside (i.e. doesn't
forget about the chained event handlers and validators).

Still keep this function because it makes the code more modular and also
because we might want to make it virtual for consistency with TryBefore() and
TryAfter() later. Also rename it to TryHere() to make the symmetry with these
functions more manifest.

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

14 years agoUse ProcessEventLocally() instead of ProcessEventHere() in docview code.
Vadim Zeitlin [Sun, 9 May 2010 14:55:41 +0000 (14:55 +0000)] 
Use ProcessEventLocally() instead of ProcessEventHere() in docview code.

Use wxEvtHandler::ProcessEventLocally() instead of ProcessEventHere() when
forwarding events in the docview code. This ensures that any event handlers
chained with the objects involved (document manager, document, view) will be
used.

Incidentally the old code didn't work at all as ProcessEventHere() didn't even
call TryBefore() where the (further) forwarding was implemented.

Closes #10640.

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

14 years agoAdd wxWindow::ProcessWindowEventLocally() and use it in wxMSW MDI code.
Vadim Zeitlin [Sun, 9 May 2010 14:55:33 +0000 (14:55 +0000)] 
Add wxWindow::ProcessWindowEventLocally() and use it in wxMSW MDI code.

Add ProcessWindowEventLocally() which wraps ProcessEventLocally() in the same
way as ProcessWindowEvent() wraps ProcessEvent(). I.e. it allows to process
the event in this window only, without propagating it upwards, but taking into
account any event handlers associated with it.

Use the new method in wxMDIParentFrame code in wxMSW to ensure that event
handlers pushed on MDI children frames are taken into account. Add a test for
this to the MDI sample.

Closes #11225.

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