]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoget rid of wxMimeTypesManager::ReadMailcap and wxMimeTypesManager::ReadMimeTypes...
Francesco Montorsi [Sun, 6 Jun 2010 11:37:10 +0000 (11:37 +0000)] 
get rid of wxMimeTypesManager::ReadMailcap and wxMimeTypesManager::ReadMimeTypes from old include files and from the docs.

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

14 years agodocument wxTransparentColour global instance
Francesco Montorsi [Sun, 6 Jun 2010 11:35:11 +0000 (11:35 +0000)] 
document wxTransparentColour global instance

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

14 years agomore readable argument names for wxDC::DrawArc
Francesco Montorsi [Sun, 6 Jun 2010 11:34:33 +0000 (11:34 +0000)] 
more readable argument names for wxDC::DrawArc

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

14 years agoIn wxComboCtrlBase::DoShowPopup(), if the popup window is a generic TLW or a 'perfect...
Jaakko Salli [Sun, 6 Jun 2010 09:35:06 +0000 (09:35 +0000)] 
In wxComboCtrlBase::DoShowPopup(), if the popup window is a generic TLW or a 'perfect' wxPopupWindow, then try to set focus to the popup control at the end of show

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

14 years agoUse ShowWithEffect() in the sample wxComboCtrlWithCustomPopupAnim instead of manual...
Jaakko Salli [Sun, 6 Jun 2010 09:15:20 +0000 (09:15 +0000)] 
Use ShowWithEffect() in the sample wxComboCtrlWithCustomPopupAnim instead of manual window manipulation in timer event

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

14 years agoDon't send selection events for an already selected item in wxMSW wxListBox.
Vadim Zeitlin [Sat, 5 Jun 2010 22:58:13 +0000 (22:58 +0000)] 
Don't send selection events for an already selected item in wxMSW wxListBox.

Remember the last item for which a listbox notification event had been sent
and don't send it again if the user clicks on an already selected item. This
is consistent with wxGTK behaviour and generally makes more sense: why should
we send an event if the selection didn't really change?

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

14 years agoDon't send listbox selection events when mouse wasn't clicked on an item.
Vadim Zeitlin [Sat, 5 Jun 2010 22:58:09 +0000 (22:58 +0000)] 
Don't send listbox selection events when mouse wasn't clicked on an item.

Windows sends events even if the mouse is clicked in the area below the items,
filter them out by checking the item under the mouse ourselves.

Also use synchronous GetMessagePos() function to get the mouse position
instead of the asynchronous GetCursorPos() which was wrongly used by the old
code.

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

14 years agoUse mouse position to find the item for selection events in wxMSW listbox.
Vadim Zeitlin [Sat, 5 Jun 2010 22:58:05 +0000 (22:58 +0000)] 
Use mouse position to find the item for selection events in wxMSW listbox.

Using LB_GETCARETINDEX doesn't work when the mouse is used to make selection
because it always returns the index of the last item, even if the mouse is
clicked below it, on an area without any listbox items. So use the mouse
position to find the item in this case but still use LB_GETCARETINDEX to find
the item when the keyboard is used.

This required adding a flag to wxListBox storing the kind of the last input
message that it received as there doesn't seem to be any way to determine how
the message was generated otherwise.

This code will be refactored/improved further in the next two commits.

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

14 years agoNo changes, just refactor wxListBox initialization in wxMSW.
Vadim Zeitlin [Sat, 5 Jun 2010 22:57:59 +0000 (22:57 +0000)] 
No changes, just refactor wxListBox initialization in wxMSW.

Extract member fields initialization in Init() method instead of duplicating
it in default ctor and Create().

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

14 years agoRefactor listbox event sending code to avoid duplication.
Vadim Zeitlin [Sat, 5 Jun 2010 22:57:53 +0000 (22:57 +0000)] 
Refactor listbox event sending code to avoid duplication.

wxMSW wxListBox implementation contained the same code as the private
LBSendEvent() function in lboxcmn.cpp, so make this function a (protected)
member of wxListBoxBase and reuse it instead.

Also change its and CalcAndSendEvent() return type to bool to be able to
return whether the event was processed or not.

As the result of this refactoring, the "is selected" flag is now set correctly
for the selection events under MSW (it was always off before).

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

14 years agoDon't return true from DoTryChain() if the event wasn't really processed.
Vadim Zeitlin [Sat, 5 Jun 2010 22:57:48 +0000 (22:57 +0000)] 
Don't return true from DoTryChain() if the event wasn't really processed.

Correct the return value when an event handler didn't honour "process only in
this handler" flag: we shouldn't pass the event to the further handlers in
this case but we shouldn't return true neither as the event wasn't really
processed.

This corrects background painting of wxHtmlWindow broken by previous changes.

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

14 years agom_id was already set, don't set it to the passed in value again as then we lose the...
Robin Dunn [Sat, 5 Jun 2010 01:23:18 +0000 (01:23 +0000)] 
m_id was already set, don't set it to the passed in value again as then we lose the value which may have been calculated for wxID_ANY.

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

14 years agoCorrect EVT_LIST_BEGIN_LABEL_EDIT macro name in the documentation.
Vadim Zeitlin [Fri, 4 Jun 2010 22:04:23 +0000 (22:04 +0000)] 
Correct EVT_LIST_BEGIN_LABEL_EDIT macro name in the documentation.

The "LIST" part was missing.

Closes #12124.

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

14 years agono real change: just rename "near" into "onNearPart" (MSVC doesn't like 'near' as...
Francesco Montorsi [Thu, 3 Jun 2010 21:14:34 +0000 (21:14 +0000)] 
no real change: just rename "near" into "onNearPart" (MSVC doesn't like 'near' as variable name)

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

14 years agoGreatly reduce rare animation garbage in wxOwnerDrawnComboBox drop-down animation...
Jaakko Salli [Thu, 3 Jun 2010 15:16:25 +0000 (15:16 +0000)] 
Greatly reduce rare animation garbage in wxOwnerDrawnComboBox drop-down animation (fixes #12087)

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

14 years agoDrop the column being dragged at the correct position in wxGrid.
Vadim Zeitlin [Thu, 3 Jun 2010 10:35:53 +0000 (10:35 +0000)] 
Drop the column being dragged at the correct position in wxGrid.

The column was being always dropped after the column at drop position but this
was incorrect and didn't correspond to the visual feedback drawn by
wxHeaderCtrl: if the drop position is over the "near" part of the column, the
column should be dropped before it instead.

Do the check for this in wxGrid code too now.

Closes #12120.

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

14 years agoTest for wxPen validity before testing for its style in wxGTK wxDC.
Vadim Zeitlin [Thu, 3 Jun 2010 10:35:49 +0000 (10:35 +0000)] 
Test for wxPen validity before testing for its style in wxGTK wxDC.

Calling wxPen::GetStyle() on an invalid pen resulted in an assert, breaking
the grid column drawing while reordering them, for example, because the code
in wxGrid uses wxDC::DrawRectangle() after calling SetPen(wxNullPen).

Fix this by testing for the pen validity first.

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

14 years agoAssert if an invalid column index is specified when inserting wxListCtrl item.
Vadim Zeitlin [Thu, 3 Jun 2010 10:35:41 +0000 (10:35 +0000)] 
Assert if an invalid column index is specified when inserting wxListCtrl item.

This also catches the case of inserting an item in a report mode wxListCtrl
without adding any columns to it first. Previously this did result in an
assert but with a less clear error message and, most importantly, still a
crash afterwards. Assert only now, don't crash.

The message could still be improved but hopefully people will be able to
understand that inserting items when no columns are defined is not the right
thing to do.

Closes #12119.

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

14 years agofix StringTestCase::FromDouble: newer MSVC versions use three digits for the exponent...
Francesco Montorsi [Wed, 2 Jun 2010 14:56:58 +0000 (14:56 +0000)] 
fix StringTestCase::FromDouble: newer MSVC versions use three digits for the exponent width

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

14 years agoremove wxFileConfig tests: FileConfigTestCase already tests features tested by consol...
Francesco Montorsi [Wed, 2 Jun 2010 14:51:45 +0000 (14:51 +0000)] 
remove wxFileConfig tests: FileConfigTestCase already tests features tested by console sample and is much more complete.

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

14 years agoMove some wxPrintf() tests (taken from glibc) to VsnprintfTestCase. Other tests are...
Francesco Montorsi [Wed, 2 Jun 2010 14:42:26 +0000 (14:42 +0000)] 
Move some wxPrintf() tests (taken from glibc) to VsnprintfTestCase. Other tests are more difficult to convert in CppUnit style and not worth the effort (since now we don't use wx's own vsnprintf implementation anymore typically).

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

14 years agoMove wxRegConfig tests from console sample to a new wxRegConfigTestCase class.
Francesco Montorsi [Wed, 2 Jun 2010 14:12:07 +0000 (14:12 +0000)] 
Move wxRegConfig tests from console sample to a new wxRegConfigTestCase class.
Remove wxRegKey tests from console sample: on newer Windows they only work when run with admin privileges; also we can expect wx[Reg]ConfigTestCase to already check a good number of wxRegKey features.

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

14 years agoMake wxConfig ctor docs more readable.
Francesco Montorsi [Wed, 2 Jun 2010 13:53:12 +0000 (13:53 +0000)] 
Make wxConfig ctor docs more readable.
Add a simple stub for wxRegConfig class so that Doxygen highlights it just like it does with wxFileConfig.

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

14 years agoFix recently broken forwarding of events between event handlers.
Vadim Zeitlin [Wed, 2 Jun 2010 11:58:31 +0000 (11:58 +0000)] 
Fix recently broken forwarding of events between event handlers.

After the recent changes to the event processing logic, forwarding an event
from one event handler to another one stopped working correctly because the
per-event "process here only" flag prevented it from following the event
handler chain after forwarding. This notably broke keyboard navigation in
wxComboCtrl under MSW in wx itself and probably quite a few of other things in
user code.

Fix this by replacing the boolean flag with a pointer to the handler to which
the processing of this event should be restricted. This allows the full
processing to still take place if an event is forwarded to another handler.
So wxEvent::ShouldProcessHereOnly() is now called ShouldProcessOnlyIn() and
takes a wxEvtHandler parameter.

This made appear a problem in wxScrollHelperEvtHandler code that was hidden by
the bug above: the events were still processed multiple times in it. To fix
this, also add wxEvent::DidntHonourProcessOnlyIn() and take it into account in
the base class code. Did I mention that wxScrollHelperEvtHandler must die?

Add another unit test checking that forwarding works correctly.

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

14 years agoFix drawing of scaled bitmaps in wxCairoContext.
Vadim Zeitlin [Wed, 2 Jun 2010 11:58:25 +0000 (11:58 +0000)] 
Fix drawing of scaled bitmaps in wxCairoContext.

We must offset the coordinate system before scaling it, otherwise incorrect
offset is used.

Add a test for drawing translated/scaled bitmaps to the drawing sample.

See #11097.

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

14 years agoDon't hard code position of the drawing sample window and increase its size.
Vadim Zeitlin [Wed, 2 Jun 2010 11:58:21 +0000 (11:58 +0000)] 
Don't hard code position of the drawing sample window and increase its size.

Hardcoding position to 50,50 is inconvenient, let the window manager position
the window as configured by user. Also, the vertical size of the sample was
too small to see the contents of most pages, increase it.

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

14 years agoRemove unused GetTextExtent() call from wxProgressDialog.
Vadim Zeitlin [Wed, 2 Jun 2010 11:58:16 +0000 (11:58 +0000)] 
Remove unused GetTextExtent() call from wxProgressDialog.

This seems to be a left-over from the old, manual positioning code. As we use
sizers now, it's not needed any more.

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

14 years agodisable FTPTestCase by default.
Francesco Montorsi [Wed, 2 Jun 2010 10:49:44 +0000 (10:49 +0000)] 
disable FTPTestCase by default.
Add a warning for the user when running --list without arguments: not all tests are listed, only those enabled by default (e.g. FTPTestCase doesn't appear there)!

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

14 years agoInterpret arrow keys correctly in wxMSW wxComboCtrl::IsKeyPopupToggle() (fixes #12114)
Jaakko Salli [Tue, 1 Jun 2010 15:31:05 +0000 (15:31 +0000)] 
Interpret arrow keys correctly in wxMSW wxComboCtrl::IsKeyPopupToggle() (fixes #12114)

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

14 years agoIn wxComboPopupEvtHandler::OnMouseEvent(), when need to relay event to drop-down...
Jaakko Salli [Tue, 1 Jun 2010 15:01:59 +0000 (15:01 +0000)] 
In wxComboPopupEvtHandler::OnMouseEvent(), when need to relay event to drop-down button, call HandleButtonMouseEvent() directly, if possible. This is less confusing for the platform-specific wxComboCtrl implementations, and fixes issue where the drop-down button could remain in pressed state after the mouse button was lifted.

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

14 years agoFor clarity: wxComboPopupExtraEventHandler -> wxComboPopupEvtHandler (there is nothin...
Jaakko Salli [Tue, 1 Jun 2010 14:17:32 +0000 (14:17 +0000)] 
For clarity: wxComboPopupExtraEventHandler -> wxComboPopupEvtHandler (there is nothing particularly extra about it)

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

14 years agoRefactored wxComboPopupExtraEventHandler::OnMouseEvent(). Now block mouse events...
Jaakko Salli [Tue, 1 Jun 2010 13:46:14 +0000 (13:46 +0000)] 
Refactored wxComboPopupExtraEventHandler::OnMouseEvent(). Now block mouse events from the popup control until mouse button has been seen in 'up' state (ignoring first mouse up). This matches Windows native combo box behavior (fixes #12115).

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

14 years agoUpdate AUI floating windows position and not just size on resize.
Vadim Zeitlin [Mon, 31 May 2010 14:59:18 +0000 (14:59 +0000)] 
Update AUI floating windows position and not just size on resize.

When a window is resized, its position can change as well as its size but it
wasn't updated before. Do it now.

Closes #11421.

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

14 years agoRegenerate wxstd.pot with the recently added translatable strings.
Vadim Zeitlin [Mon, 31 May 2010 14:59:13 +0000 (14:59 +0000)] 
Regenerate wxstd.pot with the recently added translatable strings.

Simply reran "make wxstd.pot" in locale subdirectory.

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

14 years agoDon't disable wxID_PRINT_SETUP even when there is no active document.
Vadim Zeitlin [Mon, 31 May 2010 14:59:08 +0000 (14:59 +0000)] 
Don't disable wxID_PRINT_SETUP even when there is no active document.

Printer can be setup without active document, remove the EVT_UPDATE_UI handler
for wxID_PRINT_SETUP.

See #11394.

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

14 years agoTranslate strings used in doc-view printing code.
Vadim Zeitlin [Mon, 31 May 2010 14:59:03 +0000 (14:59 +0000)] 
Translate strings used in doc-view printing code.

Simply use _() instead of wxT() for the user-visible strings.

Closes #12110.

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

14 years agoUse C locale for numbers in wx(File)Config.
Vadim Zeitlin [Mon, 31 May 2010 11:55:53 +0000 (11:55 +0000)] 
Use C locale for numbers in wx(File)Config.

Using the current locale decimal point in config files results in problems
when moving the files to another machine or even using a different locale on
the same one, so don't do it.

Always write the numbers using C locale and try to read them in C locale too
first, but also try the current locale if we failed for backwards
compatibility and to be tolerant with users who edit their config files by
hand.

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

14 years agoAdd wxString::FromDouble() and FromCDouble().
Vadim Zeitlin [Mon, 31 May 2010 11:55:48 +0000 (11:55 +0000)] 
Add wxString::FromDouble() and FromCDouble().

wxString::FromCDouble() is needed inside wxWidgets itself to format numbers
independently of the current locale. FromDouble() was added for symmetry with
ToDouble/ToCDouble() functions.

Use std::locale for the implementation if available and manual wxLocale-based
fallback otherwise.

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

14 years agoMake wxString::ToCXXX() methods always available.
Vadim Zeitlin [Mon, 31 May 2010 11:55:41 +0000 (11:55 +0000)] 
Make wxString::ToCXXX() methods always available.

We use these methods inside wxWidgets itself and so want to always have them,
even when wxUSE_XLOCALE==0. Provide replacement manual implementations for
this case.

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

14 years agoNo real changes, just avoid an unnecessary heap allocation in a test.
Vadim Zeitlin [Mon, 31 May 2010 11:55:37 +0000 (11:55 +0000)] 
No real changes, just avoid an unnecessary heap allocation in a test.

We don't need to allocate the locale object in StringTestCase::ToDouble() on
the heap (and then delete it -- or not, if an assertion fails before the
function end), it's enough and simpler to just create it as a local variable.

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

14 years agoFix wxFont::IsFixedWidth() under MSW to always return correct result.
Vadim Zeitlin [Sun, 30 May 2010 23:28:59 +0000 (23:28 +0000)] 
Fix wxFont::IsFixedWidth() under MSW to always return correct result.

This function worked erratically, returning the correct result or not
depending on the way it was created. Reimplement it using GetTextMetrics() to
get the correct result in any case.

Closes #4714.

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

14 years agoAdd a simple example to make it easier to get started (by copy&paste).
Francesco Montorsi [Sun, 30 May 2010 23:28:51 +0000 (23:28 +0000)] 
Add a simple example to make it easier to get started (by copy&paste).

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

14 years agoimplement * and / operators for wxPoint, not only wxSize.
Francesco Montorsi [Sun, 30 May 2010 23:28:14 +0000 (23:28 +0000)] 
implement * and / operators for wxPoint, not only wxSize.
Add to their documentation a note about the fact that the real operators are not class members but rather global functions.

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

14 years agoAdd <span> tag and limited support for CSS styles to wxHTML.
Vadim Zeitlin [Sun, 30 May 2010 23:12:25 +0000 (23:12 +0000)] 
Add <span> tag and limited support for CSS styles to wxHTML.

Parse "style" attributes of the HTML tags and honour those of them that can be
mapped to the HTML 3 attributes.

Also add a handler for <span> tag.

Closes #10631.

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

14 years agoNo changes, just rebaked and reran autoconf.
Vadim Zeitlin [Sun, 30 May 2010 20:05:56 +0000 (20:05 +0000)] 
No changes, just rebaked and reran autoconf.

It seems that autoconf_inc.m4 hadn't been regenerated by a previous change as
rerunning bakefile_gen resulted in a lot of changes in it, do it now without
any other changes to ensure that the next commit only contains the changes due
to its modification of files.bkl.

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

14 years agoActivate the view of a newly created document.
Vadim Zeitlin [Sun, 30 May 2010 20:05:44 +0000 (20:05 +0000)] 
Activate the view of a newly created document.

This appears to be necessary under Mac where views are top level windows and
should do no harm elsewhere.

Also factor out the activation code in a new wxDocManager::ActivateDocument()
method to avoid duplicating it.

Closes #11417.

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

14 years agoStore page setup data in wxDocManager.
Vadim Zeitlin [Sun, 30 May 2010 20:05:39 +0000 (20:05 +0000)] 
Store page setup data in wxDocManager.

Printing of documents from wxDocManager always used default page setup data,
allow the user to configure it now.

Add wxDocManager::m_pageSetupDialogData and add a handler for wxID_PRINT_SETUP
command to it.

Closes #11394.

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

14 years agoDon't generate AUINOTEBOOK_BG_DCLICK when clicking inactive arrow.
Vadim Zeitlin [Sun, 30 May 2010 20:05:34 +0000 (20:05 +0000)] 
Don't generate AUINOTEBOOK_BG_DCLICK when clicking inactive arrow.

Clicking on a disabled arrow shouldn't do anything, in particular it shouldn't
generate a wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK event.

See #12084.

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

14 years agoPatch update, probably fixes #12090: wxGTK cursor handling revamp
Robert Roebling [Sun, 30 May 2010 20:01:36 +0000 (20:01 +0000)] 
Patch update, probably fixes #12090: wxGTK cursor handling revamp

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

14 years agoUse GTKXXX notation for some more wxGTK specific methods for consistency
Robert Roebling [Sun, 30 May 2010 17:45:40 +0000 (17:45 +0000)] 
Use GTKXXX notation for some more wxGTK specific methods for consistency

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

14 years agowxrc -g should output filenames in Unix format.
Václav Slavík [Sun, 30 May 2010 16:53:20 +0000 (16:53 +0000)] 
wxrc -g should output filenames in Unix format.

It is customary in C source code and xgettext has problems with
backslahes in #line comments.

Fixes #10727.

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

14 years agoCaret position corrected to end of selection
Julian Smart [Sun, 30 May 2010 14:00:35 +0000 (14:00 +0000)] 
Caret position corrected to end of selection

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

14 years agoFix Shift+TAB navigation from wxNotebook.
Václav Slavík [Sun, 30 May 2010 12:21:49 +0000 (12:21 +0000)] 
Fix Shift+TAB navigation from wxNotebook.

When the focus was on a tab label, Shift+TAB didn't move it out of the
notebook to the preceding control, as it should. Instead, focus moved to
the last control in the current notebook page.

This change fixes it, TAB and Shift-TAB cycling through controls now
behaves identically modulo direction.

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

14 years agoRemove pizza backing window.
Paul Cornett [Sun, 30 May 2010 06:38:28 +0000 (06:38 +0000)] 
Remove pizza backing window.
When it is present, no-window widgets sometimes don't get expose events for
reasons I could not determine. And it is dubious that it improved scrolling
performance on modern hardware anyway, and almost certainly doesn't help now
that GTK+ is using "client side windows".

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

14 years agoAdd "filter changed" event to wxFileCtrl.
Vadim Zeitlin [Sat, 29 May 2010 10:35:47 +0000 (10:35 +0000)] 
Add "filter changed" event to wxFileCtrl.

Generate an event when the selection in the filter combobox of wxFileCtrl
changes.

Closes #12099.

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

14 years agoAdd wxConfig::Read(float *) overload.
Vadim Zeitlin [Sat, 29 May 2010 10:35:38 +0000 (10:35 +0000)] 
Add wxConfig::Read(float *) overload.

This uses Read(double *) but casts the result to float after checking that it
is in the correct range.

Closes #12100.

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

14 years agoShow OLE errors using wxLogDebug() in wxAutomationObject.
Vadim Zeitlin [Sat, 29 May 2010 10:35:30 +0000 (10:35 +0000)] 
Show OLE errors using wxLogDebug() in wxAutomationObject.

Enable the previously commented out ShowException() but use wxLogDebug() in it
instead of wxLogWarning() to avoid confusing the users with errors they don't
care about.

Closes #11632.

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

14 years agoFixed assert when editing wxFontProperty with unspecified value (fixes #12086)
Jaakko Salli [Sat, 29 May 2010 10:01:35 +0000 (10:01 +0000)] 
Fixed assert when editing wxFontProperty with unspecified value (fixes #12086)

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

14 years agoremove test code for wxScopeGuard (there's already a better ScopeGuardTestCase)
Francesco Montorsi [Sat, 29 May 2010 08:22:34 +0000 (08:22 +0000)] 
remove test code for wxScopeGuard (there's already a better ScopeGuardTestCase)

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

14 years agoremove wxCmdLineParser tests; there is already a much more complete test suite (CmdLi...
Francesco Montorsi [Sat, 29 May 2010 08:20:46 +0000 (08:20 +0000)] 
remove wxCmdLineParser tests; there is already a much more complete test suite (CmdLineTestCase).
Refactor single instance checker test.

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

14 years agoget rid of socket tests; there are marked as broken and we already have SocketTestCas...
Francesco Montorsi [Sat, 29 May 2010 08:00:50 +0000 (08:00 +0000)] 
get rid of socket tests; there are marked as broken and we already have SocketTestCase in CppUnit test classes.

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

14 years agomove all non-interactive FTP tests from the console sample to a new CppUnit FTPTestCa...
Francesco Montorsi [Sat, 29 May 2010 07:56:08 +0000 (07:56 +0000)] 
move all non-interactive FTP tests from the console sample to a new CppUnit FTPTestCase test.

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

14 years agoAdd examples of usage for easy copy-and-paste.
Francesco Montorsi [Fri, 28 May 2010 20:31:45 +0000 (20:31 +0000)] 
Add examples of usage for easy copy-and-paste.
Minor corrections and markup changes.

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

14 years agoUpdate configuration for wxX11 on OpenVMS
Jouk Jansen [Fri, 28 May 2010 13:31:41 +0000 (13:31 +0000)] 
Update configuration for wxX11 on OpenVMS

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

14 years agoIn wxComboPopupExtraEventHandler::OnMouseEvent(): Also include wxEVT_LEFT_UP among...
Jaakko Salli [Thu, 27 May 2010 20:03:07 +0000 (20:03 +0000)] 
In wxComboPopupExtraEventHandler::OnMouseEvent(): Also include wxEVT_LEFT_UP among the mouse events to be blocked when the cursor is outside the popup area. This fixes wxMSW bug where the popup disappears immediately after mouse button is released (see #12087).

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

14 years agoIgnore "%*" in the shell command strings in MSW registry.
Vadim Zeitlin [Thu, 27 May 2010 17:07:46 +0000 (17:07 +0000)] 
Ignore "%*" in the shell command strings in MSW registry.

Apparently "%*" can be used now in addition to the usual "%1" in the MSW shell
command strings. As we don't support passing more than one file to a command
at once anyhow, simply ignore them. At least this avoids errors when trying to
open files with some extensions.

Closes #12091.

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

14 years agoFall back on using tree/list control item text in wxDragImage.
Vadim Zeitlin [Thu, 27 May 2010 17:07:40 +0000 (17:07 +0000)] 
Fall back on using tree/list control item text in wxDragImage.

Use the item text instead of its image if it doesn't have any when creating a
wxDragImage from a wxTreeCtrl or wxListCtrl item instead of just failing.

Closes #4390.

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

14 years agoCorrect wxEVT_AUXn_XXX event types names.
Vadim Zeitlin [Thu, 27 May 2010 17:07:35 +0000 (17:07 +0000)] 
Correct wxEVT_AUXn_XXX event types names.

They had a wrong "MOUSE" part in them while "MOUSE" is only used for the event
table macros but not the event types themselves for some reason.

Closes #12095.

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

14 years agoAdd missing samples to samples.dsw.
Vadim Zeitlin [Thu, 27 May 2010 17:07:30 +0000 (17:07 +0000)] 
Add missing samples to samples.dsw.

Add all the samples to the workspace file to allow building all of them at
once easily.

Closes #12098.

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

14 years agoFixed wxComboCtrl::SetButtonPosition() on Vista/Win7 by marking the drop-down button...
Jaakko Salli [Thu, 27 May 2010 14:51:07 +0000 (14:51 +0000)] 
Fixed wxComboCtrl::SetButtonPosition() on Vista/Win7 by marking the drop-down button as 'non-standard' when its size or position is changed

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

14 years agouse wxToggleButtonXmlHandler::DoCreateBitmapToggleButton on supoorted platforms only
Jouk Jansen [Thu, 27 May 2010 13:45:06 +0000 (13:45 +0000)] 
use wxToggleButtonXmlHandler::DoCreateBitmapToggleButton on supoorted platforms only

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

14 years agoadd docs for the global wxStringTokenize() function which were lost during latex...
Francesco Montorsi [Wed, 26 May 2010 23:05:04 +0000 (23:05 +0000)] 
add docs for the global wxStringTokenize() function which were lost during latex=>doxygen conversion

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

14 years agofix incoherency between the wxThread implementation based on MSW threads and pthread...
Francesco Montorsi [Wed, 26 May 2010 22:44:13 +0000 (22:44 +0000)] 
fix incoherency between the wxThread implementation based on MSW threads and pthread: Delete()ing a thread which hasn't started yet must return wxTHREAD_MISC_ERROR

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

14 years agoApplied patch, fixes #12090: wxGTK cursor handling revamp
Robert Roebling [Wed, 26 May 2010 17:37:55 +0000 (17:37 +0000)] 
Applied patch, fixes #12090: wxGTK cursor handling revamp

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

14 years agoComboControl -> ComboCtrl
Jaakko Salli [Wed, 26 May 2010 15:15:28 +0000 (15:15 +0000)] 
ComboControl -> ComboCtrl

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

14 years agoFix setting the fonts for wxMSW wxTextCtrl with wxTE_RICH(2) style.
Vadim Zeitlin [Tue, 25 May 2010 21:15:24 +0000 (21:15 +0000)] 
Fix setting the fonts for wxMSW wxTextCtrl with wxTE_RICH(2) style.

Using WM_SETFONT seemed to work with rich edit controls but in fact it
doesn't, it only changes the font used by the control initially apparently but
it can be reset later.

Use EM_SETCHARFORMAT which is more reliable.

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

14 years agoDraw wxPropertyGrid drop down items with consistent (non-bold) font (fixes #12088)
Jaakko Salli [Tue, 25 May 2010 15:32:43 +0000 (15:32 +0000)] 
Draw wxPropertyGrid drop down items with consistent (non-bold) font (fixes #12088)

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

14 years agoAlways call OnSetValue() for a property when values are being set for its children...
Jaakko Salli [Mon, 24 May 2010 13:09:36 +0000 (13:09 +0000)] 
Always call OnSetValue() for a property when values are being set for its children (fixes #12085)

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

14 years agoremove streams tests: they're very basic and already-existing CppUnit stream tests...
Francesco Montorsi [Sun, 23 May 2010 19:07:43 +0000 (19:07 +0000)] 
remove streams tests: they're very basic and already-existing CppUnit stream tests are much more complete and extended.

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

14 years agonon-PCH compilation
Robert Roebling [Sun, 23 May 2010 18:44:24 +0000 (18:44 +0000)] 
non-PCH compilation

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

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