]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoNo changes, just update a comment about default buttons in wxMSW.
Vadim Zeitlin [Sat, 13 Oct 2012 22:54:09 +0000 (22:54 +0000)] 
No changes, just update a comment about default buttons in wxMSW.

Remove the TODO from it because it's not really obvious if using the proposed
approach is such a good idea.

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

12 years agoDisplay system-provided drag images during drag-and-drop in wxMSW.
Vadim Zeitlin [Sat, 13 Oct 2012 22:53:46 +0000 (22:53 +0000)] 
Display system-provided drag images during drag-and-drop in wxMSW.

This is especially useful when dragging files from Explorer as it provides
big, informative drag images for them that can be easily displayed using
Windows shell support for them.

See #14697.

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

12 years agoUse a "hidden" dialog, not frame, in sync wxExecute() hack in wxMSW.
Vadim Zeitlin [Sat, 13 Oct 2012 22:53:22 +0000 (22:53 +0000)] 
Use a "hidden" dialog, not frame, in sync wxExecute() hack in wxMSW.

Replace a "hidden" (not really, but shown far off screen) frame with a dialog
to avoid this frame appearing in the Alt+TAB list.

Closes #13251.

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

12 years agoSet the standard sample icon for the exec sample.
Vadim Zeitlin [Sat, 13 Oct 2012 22:52:59 +0000 (22:52 +0000)] 
Set the standard sample icon for the exec sample.

Do this for consistency with all the other ones and also because it makes it
simpler to notice any unwanted icons for hidden windows created by this sample.

See #13251.

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

12 years agoFreeze wxTreeCtrl in wxMSW by hiding it.
Vadim Zeitlin [Sat, 13 Oct 2012 22:52:35 +0000 (22:52 +0000)] 
Freeze wxTreeCtrl in wxMSW by hiding it.

This is far from perfect but better than alternative as freezing this control
by sending WM_SETREDRAW to it can result in completely broken behaviour as
explained in http://support.microsoft.com/kb/130611. And not freezing it at
all shows horrible flicker when adding even a relatively small number of items
at once to the control because it recalculates and repositions its scrollbars
after every parent node addition.

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

12 years agoSet wxTAB_TRAVERSAL for wxNavigationEnabled<> windows with focusable children.
Vadim Zeitlin [Sat, 13 Oct 2012 22:52:12 +0000 (22:52 +0000)] 
Set wxTAB_TRAVERSAL for wxNavigationEnabled<> windows with focusable children.

We need to have this flag under wxMSW in order for navigation events to be
generated for the window. As wxNavigationEnabled can't set this flag on
creation because its ctor is called too early, do it in overridden AddChild().

Closes #13271.

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

12 years agoAllow using windows that can't be focused with wxNavigationEnabled<>.
Vadim Zeitlin [Sat, 13 Oct 2012 22:51:50 +0000 (22:51 +0000)] 
Allow using windows that can't be focused with wxNavigationEnabled<>.

The code in wxNavigationEnabled<> assumed that the window itself could be
focused if it didn't have any focusable children because it was originally
extracted from wxPanel that can, indeed, be focused. This is however not the
case for all windows, notably not for wxStaticBox which now derives from
wxNavigationEnabled as well but can never be focused itself.

Add wxControlContainer::DisableSelfFocus() and call it from wxStaticBox to
support this situation. This required splitting m_acceptsFocus flag into
m_acceptsFocusSelf and m_acceptsFocusChildren and updating various methods
using them.

See #13271.

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

12 years agoUse WS_EX_CONTROLPARENT for wxStaticBox in wxMSW.
Vadim Zeitlin [Sat, 13 Oct 2012 22:51:27 +0000 (22:51 +0000)] 
Use WS_EX_CONTROLPARENT for wxStaticBox in wxMSW.

This doesn't change anything currently but it seems correct to use this style
with wxStaticBox as it can now contain other windows (and so be "control
parent"), so it could allow Windows or other programs checking for this style
to handle it more correctly.

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

12 years agoRemove unused wxNavigationEnabled::AcceptFocus() method.
Vadim Zeitlin [Sat, 13 Oct 2012 22:51:04 +0000 (22:51 +0000)] 
Remove unused wxNavigationEnabled::AcceptFocus() method.

This doesn't seem to be ever called or used from anywhere else.

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

12 years agoDocument wxListBox limitation concerning TAB characters.
Vadim Zeitlin [Sat, 13 Oct 2012 22:50:41 +0000 (22:50 +0000)] 
Document wxListBox limitation concerning TAB characters.

TABs appear simply as a space under MSW (because we don't use LBS_USETABSTOPS
style there) but are aligned to (multiple of 8?) tab stops under GTK. It's not
clear which behaviour is actually preferable so for now just document the
inconsistency and advise people to use spaces instead.

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

12 years agoRemove mention of "listbox callback" from wxListBox documentation.
Vadim Zeitlin [Sat, 13 Oct 2012 22:50:19 +0000 (22:50 +0000)] 
Remove mention of "listbox callback" from wxListBox documentation.

This is probably a left over from wxWidgets 1.x.

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

12 years agoImprove explanation of maximal number of wxListBox items in the documentation.
Vadim Zeitlin [Sat, 13 Oct 2012 22:49:56 +0000 (22:49 +0000)] 
Improve explanation of maximal number of wxListBox items in the documentation.

Don't say that it's limited -- because, strictly speaking, it isn't -- but
mention other controls that are better alternatives for large numbers of items.

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

12 years agoDo give focus to the wxNotebook page when switching to it under MSW.
Vadim Zeitlin [Sat, 13 Oct 2012 22:49:33 +0000 (22:49 +0000)] 
Do give focus to the wxNotebook page when switching to it under MSW.

Switching to the page but keeping the focus on the notebook itself makes it
difficult to use the UI from keyboard and is inconsistent with the behaviour
of native property sheets. Do restore the code to set the focus to the page as
the bug that resulted in a wrong radio button being selected when we did this
was apparently fixed elsewhere in the meanwhile because it doesn't happen any
more even with this change.

See #2268.

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

12 years agoTamil translations update from DINAKAR T.D.
Vadim Zeitlin [Fri, 12 Oct 2012 18:45:38 +0000 (18:45 +0000)] 
Tamil translations update from DINAKAR T.D.

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

12 years agoDocument default argument value of wxListCtrl::EnableBellOnNoMatch().
Vadim Zeitlin [Thu, 11 Oct 2012 22:29:35 +0000 (22:29 +0000)] 
Document default argument value of wxListCtrl::EnableBellOnNoMatch().

In addition to forgetting to specify the default value in wxGenericListCtrl,
it was also not documented, do it now to complete the fix of r72654.

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

12 years agoUse "true" by default in wxGenericListCtrl::EnableBellOnNoMatch().
Vadim Zeitlin [Thu, 11 Oct 2012 12:41:07 +0000 (12:41 +0000)] 
Use "true" by default in wxGenericListCtrl::EnableBellOnNoMatch().

The changes of r72639 mistakenly omitted the default value for
EnableBellOnNoMatch() argument in this class (although it was present in the
base class and in wxGenericTreeCtrl), fix this.

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

12 years agoUpdate setup.h for OpenVMS
Jouk Jansen [Thu, 11 Oct 2012 11:15:21 +0000 (11:15 +0000)] 
Update setup.h for OpenVMS

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

12 years agoMention InvalidateBestSize() in DoGetBestClientSize() documentation.
Vadim Zeitlin [Wed, 10 Oct 2012 18:47:19 +0000 (18:47 +0000)] 
Mention InvalidateBestSize() in DoGetBestClientSize() documentation.

It is not obvious that it needs to be called when the best size changes, so
give at least a hint.

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

12 years agoDon't write text if it's empty
Julian Smart [Wed, 10 Oct 2012 15:45:08 +0000 (15:45 +0000)] 
Don't write text if it's empty

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

12 years agoDo return the protocol part from GetLocaltion() for local wxFSFiles.
Vadim Zeitlin [Tue, 9 Oct 2012 21:28:33 +0000 (21:28 +0000)] 
Do return the protocol part from GetLocaltion() for local wxFSFiles.

wxLocalFSHandler created wxFSFile without the protocol information which means
that calling GetLocaltion() on this file later doesn't return it, contrary to
the documentation.

Do include the protocol to fix this.

Closes #14638.

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

12 years agoGenerate text events in generic wxSpinCtrl itself.
Vadim Zeitlin [Tue, 9 Oct 2012 21:02:17 +0000 (21:02 +0000)] 
Generate text events in generic wxSpinCtrl itself.

The text events in a wxSpinCtrl should originate from the control itself but
they were just propagated upwards from wxTextCtrl embedded into it and hence
had wrong event object and event ID fields.

Fix this by making EVT_TEXT come from wxSpinCtrl itself, in addition to
EVT_TEXT_ENTER ones which we already forwarded like this.

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

12 years agoCopy wxCommandEvent string explicitly in its copy ctor.
Vadim Zeitlin [Tue, 9 Oct 2012 21:01:53 +0000 (21:01 +0000)] 
Copy wxCommandEvent string explicitly in its copy ctor.

Due to the optimization used in wxCommandEvent::GetString(), which returns the
string from the text control that generated the event only if it's really
needed, wxCommandEvent::m_cmdString field may be empty even when it does have
an associated string. As we lose the possibility to retrieve the value on
demand from wxTextCtrl when we make a copy (because it can be associated with
a different object), we need to explicitly copy the string to avoid losing
this data entirely.

This fixes GetString() value for the text events generated by generic
wxSearchCtrl.

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

12 years agoFix printing in landscape mode in wxGTK.
Vadim Zeitlin [Tue, 9 Oct 2012 21:01:29 +0000 (21:01 +0000)] 
Fix printing in landscape mode in wxGTK.

Only apply Cairo transforms in StartPage(), doing it earlier interferes with
the code doing the coordinate system rotation inside GTK+ itself when a
non-portrait printing mode is used.

Closes #14732.

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

12 years agoDocument wxGrid methods dealing with cell overflow.
Vadim Zeitlin [Mon, 8 Oct 2012 12:09:59 +0000 (12:09 +0000)] 
Document wxGrid methods dealing with cell overflow.

Closes #14733.

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

12 years agoRecreate GtkPrintOperation every time when printing in wxGTK.
Vadim Zeitlin [Mon, 8 Oct 2012 12:09:37 +0000 (12:09 +0000)] 
Recreate GtkPrintOperation every time when printing in wxGTK.

Apparently reusing GtkPrintOperation is not allowed, so create a new one
every time we need it.

Closes #14731.

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

12 years agoImprove wxAuiNotebook appearance when using some GTK themes.
Vadim Zeitlin [Mon, 8 Oct 2012 12:09:13 +0000 (12:09 +0000)] 
Improve wxAuiNotebook appearance when using some GTK themes.

Let wxAuiNotebook render the border itself, instead of doing it in dock art
class. This allows the notebook to do it correctly for the current theme.

Closes #14710.

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

12 years agoEnsure that key events are sent to focused window first in wxGTK.
Vadim Zeitlin [Sun, 7 Oct 2012 22:42:50 +0000 (22:42 +0000)] 
Ensure that key events are sent to focused window first in wxGTK.

Start processing key events from the currently focused window, this ensures
that its key event handlers are tried before the top level window
accelerators.

This is consistent with wxMSW and allows a window to locally override the
global accelerators which really makes sense.

Closes #14553.

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

12 years agoImplement incremental search in wxGenericListCtrl.
Vadim Zeitlin [Sun, 7 Oct 2012 22:42:27 +0000 (22:42 +0000)] 
Implement incremental search in wxGenericListCtrl.

Mostly copy wxGenericTreeCtrl incremental search implementation to
wxGenericListCtrl (unfortunately there is no simple way to reuse this code
currently), including the recently added EnableBellOnNoMatch() method.

Update the sample to test it, the key event handling in it had to be modified
to allow it.

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

12 years agoAdd a possibility to beep on no match to wxGenericTreeCtrl.
Vadim Zeitlin [Sun, 7 Oct 2012 22:42:02 +0000 (22:42 +0000)] 
Add a possibility to beep on no match to wxGenericTreeCtrl.

For consistency with Windows, allow to optionally generate a beep when
incremental search in the tree control doesn't find anything.

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

12 years agoFix return value of wxGenericTreeCtrl::FindItem().
Vadim Zeitlin [Sun, 7 Oct 2012 22:41:38 +0000 (22:41 +0000)] 
Fix return value of wxGenericTreeCtrl::FindItem().

We incorrectly returned the item we started from instead of invalid item if
there was no match, fix this.

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

12 years agoHandle successive key presses better in wxGenericTreeCtrl search code.
Vadim Zeitlin [Sun, 7 Oct 2012 22:41:15 +0000 (22:41 +0000)] 
Handle successive key presses better in wxGenericTreeCtrl search code.

Go to the next item starting with the given character if the same one is
pressed multiple times. This is more useful than searching for an item
starting with multiple occurrences of this character (which usually won't
exist) and is more consistent with how Windows handles this.

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

12 years agoRecognize "_" as alphanumeric key in wxGenericTreeCtrl find item code.
Vadim Zeitlin [Sun, 7 Oct 2012 22:40:52 +0000 (22:40 +0000)] 
Recognize "_" as alphanumeric key in wxGenericTreeCtrl find item code.

Items can have underscores in their names too, not just letters and digits.

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

12 years agoFix spurious label editing in generic wx{List,Tree,DataView}Ctrl.
Vadim Zeitlin [Sun, 7 Oct 2012 22:40:29 +0000 (22:40 +0000)] 
Fix spurious label editing in generic wx{List,Tree,DataView}Ctrl.

Clicking on the control to give it focus must not start editing the label of
an item in it, this is bad UI as you need to carefully select where do you
click to avoid starting to edit the label and nobody else does it like this
(probably because of the former reason).

As a side note, it would be really great to abstract the item handling in a
class that could be reused by all these controls instead of having to update 3
slightly different versions of the same code every time.

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

12 years agoDon't set focus explicitly in wxGenericListCtrl mouse handling code.
Vadim Zeitlin [Sun, 7 Oct 2012 22:40:06 +0000 (22:40 +0000)] 
Don't set focus explicitly in wxGenericListCtrl mouse handling code.

Just skip the event to allow the system to set the focus to the control
itself. This is more consistent with the other controls and should result in
correct behaviour everywhere automatically.

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

12 years agoDon't set focus to generic wxDataViewCtrl on any button press.
Vadim Zeitlin [Sun, 7 Oct 2012 22:39:43 +0000 (22:39 +0000)] 
Don't set focus to generic wxDataViewCtrl on any button press.

Only set focus if the left button was pressed for consistency with just about
everything else. Also, just skip the event instead of setting the focus
explicitly.

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

12 years agoNo real changes, just don't use brush styles for background mode in wxHTML.
Vadim Zeitlin [Sun, 7 Oct 2012 22:39:20 +0000 (22:39 +0000)] 
No real changes, just don't use brush styles for background mode in wxHTML.

Use just wxTRANSPARENT and wxSOLID instead of wxBRUSHSTYLE_TRANSPARENT and
wxBRUSHSTYLE_SOLID when changing the background mode.

See #14599.

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

12 years agoSupport some CSS styles for the links in wxHTML too.
Vadim Zeitlin [Sun, 7 Oct 2012 22:38:56 +0000 (22:38 +0000)] 
Support some CSS styles for the links in wxHTML too.

Refactor limited CSS styles support for <span> tag to reuse it for <a> tag as
well.

Closes #14599.

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

12 years agoFlush log messages from other threads on shutdown too.
Vadim Zeitlin [Sun, 7 Oct 2012 22:38:32 +0000 (22:38 +0000)] 
Flush log messages from other threads on shutdown too.

Add a call to wxLog::FlushActive() to the shutdown code as calling just
wxLog::SetActiveTarget(NULL) is not enough, it flushes the current log target
only but not the ones used by other threads.

Closes #14595.

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

12 years agoUpdate the year in the copyright for wxMSW DLLs.
Vadim Zeitlin [Sun, 7 Oct 2012 22:38:10 +0000 (22:38 +0000)] 
Update the year in the copyright for wxMSW DLLs.

Just s/2010/2012/

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

12 years agoFix drawing of wxAuiNotebook with GTK theme when active tab is invisible.
Vadim Zeitlin [Sun, 7 Oct 2012 22:37:47 +0000 (22:37 +0000)] 
Fix drawing of wxAuiNotebook with GTK theme when active tab is invisible.

Draw a box using gtk_paint_box() for the tabs, without border for the active
one to avoid an extra line across the gap, and with the border for the others.

Closes #14728.

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

12 years agoFix test for __WXGTK__ in wxCairoContext.
Vadim Zeitlin [Sun, 7 Oct 2012 22:37:24 +0000 (22:37 +0000)] 
Fix test for __WXGTK__ in wxCairoContext.

It must be tested with #ifdef, not #if.

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

12 years agoFix wxGenericCollapsiblePane to expand frame's size.
Václav Slavík [Sun, 7 Oct 2012 16:49:28 +0000 (16:49 +0000)] 
Fix wxGenericCollapsiblePane to expand frame's size.

wxGenericCollapsiblePane::DoGetBestSize() is dynamic, returning
different values for collapsed and open states. Therefore the control
must invalidate best sizes cache every time its state changes.

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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