Vadim Zeitlin
2fa90e33ea
Use default composite controls attributes for wxDataViewCtrl.
...
wxDataViewCtrl should use the same colours/fonts as the native list and tree
controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:12 +00:00
Vadim Zeitlin
0534259ab8
Move wxControl::GetCompositeControlsDefaultAttributes() from MSW to common.
...
This function is not MSW-specific and should be used in generic implementation
of controls such as wxListCtrl, wxTreeCtrl and wxDataViewCtrl. Even if it is
needed by MSW only now, move it to the common code to avoid #ifdefs in these
controls code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:06 +00:00
Vadim Zeitlin
7fc1b0c7ca
Fix harmless warning about -1 to WPARAM conversion.
...
This was introduced by the last change to this file in r62058.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:42:56 +00:00
Stefan Csomor
715824d58d
reducing key event handling complexity
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:39:33 +00:00
Vadim Zeitlin
1d8cdcf2e3
Don't use invalid pen in wxDCImpl::DoGradientFillConcentric().
...
The old code stored the original colour of m_pen before changing it and
restored it on exit but this didn't work if the pen was invalid to start with.
Just store the pen itself instead, this works in any case.
Closes #11235 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:41 +00:00
Vadim Zeitlin
bbb8a1aad6
Use checked bitmap for menu items under Vista.
...
The normal (unchecked) bitmap was always used for the menu items under Vista,
fix this and do use the checked bitmap if needed.
Closes #11244 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:32 +00:00
Vadim Zeitlin
bbb0ff36db
Fix another off-by-1 bug in wxMBConv::ToWChar().
...
When converting a fixed number of characters we need to take any NULs inside
the buffer being converted into account for our return value -- but this
wasn't done and converting 2 characters 'x' and '\0' returned only 1, even if
the length 2 was explicitly specified.
Fix this bug and add a unit test checking for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:27 +00:00
Vadim Zeitlin
4bc9acbe16
No changes, just convert file to UTF-8.
...
All files in svn are supposed to use UTF-8 now so convert this one to UTF-8
too before committing more changes to it (which would be otherwise rejected by
pre-commit hook).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:20 +00:00
Vadim Zeitlin
3396739da1
Refactor wxStyledTextCtrl to share common file save/load code.
...
Keep the code for saving and loading text contents from files in a single
place instead of doing it differently in wxTextCtrl and wxStyledTextCtrl.
This required adding Set/GetValue() methods to wxTextAreaBase just so that its
DoLoad/SaveFile() could use them, even if they are the same as wxTextEntryBase
methods and are overridden in wxTextCtrlBase to be implemented in terms of the
latter.
Notice that wxRichTextCtrl might need to be refactored to use this code too in
the future.
Also notice that this reverts the change of r62081 which replaced SetValue()
with ChangeValue() in DoLoadFile() as wxTextAreaBase only has SetValue() and
it's not worth adding ChangeValue() to it too just to preserve this recent
change in behaviour.
Closes #10715 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:26:16 +00:00
Vadim Zeitlin
65702d2fe9
Compilation fix for non-MSW: don't use ProcessCommand().
...
wxControl::ProcessCommand() is MSW-only, use HandleWindowEvent() to fix
compilation under Unix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:26:03 +00:00
Stefan Csomor
ddbc8ac9ca
cleaning up key handling, closes #10406
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 10:39:26 +00:00
Jaakko Salli
a1d5aa9361
Have wxComboCtrl generate wxEVT_COMMAND_COMBOBOX_DROPDOWN and wxEVT_COMMAND_COMBOBOX_CLOSEUP events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 09:15:29 +00:00
Stefan Csomor
f4c24d3da4
using native key handling, closes #10406
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 18:53:38 +00:00
Stefan Csomor
81eaa4dab2
using common notification mechanism for selection changes (key or mouse), see #10406
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 16:57:08 +00:00
Julian Smart
b80fdc0299
Raise the scrollbars on reparenting (part of patch #9076 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 16:15:04 +00:00
Julian Smart
b78ffab030
Applied #8804 ([wxMac] wxSpinCtrl behaviour)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 15:25:25 +00:00
Julian Smart
7291222828
Applied #8697 (Improve error detection for MacFindFont )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 13:14:31 +00:00
Julian Smart
476a319a8f
Applied #11238 : Wrong text positioning if fonts with different Ascent/Descent ratio are on the same line
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 11:14:11 +00:00
Julian Smart
58d4ed8a11
Applied #10007 : SetWindowGroupParent hangs in Mac Carbon dialog.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 10:11:24 +00:00
Julian Smart
1508fcaccd
Applied #10753 : WarpPointer() for Mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 09:57:41 +00:00
Julian Smart
51c72a7b56
Applied #9011 : Native wxListCtrl::HitTest on OS X
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 09:02:04 +00:00
Julian Smart
8b558f1228
Applied #9520 : Fix to allow repeated use of wxFileDialog object
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 07:51:50 +00:00
Julian Smart
a74d082e8c
Applied #10858 : wxListCtrl on Mac does not route Freeze/Thaw/Update to m_genericImpl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 07:45:35 +00:00
Julian Smart
059d234d41
Removed comment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 07:31:01 +00:00
Julian Smart
e8fdf3647c
Applied #9481 : submenus for help menu
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 07:29:59 +00:00
Julian Smart
240071a415
Added missing const
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 20:47:34 +00:00
Julian Smart
02a40b8af9
Applied #10917 : wxGTK wxFileDialog::SetDirectory and ::SetFilename problems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 20:36:46 +00:00
Julian Smart
198c264dbc
Applied part of #10034 : wxImage::ConvertToDisabled()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 20:05:33 +00:00
Julian Smart
cc3d673a84
wxDateTime timezone functions now dynamic (no caching).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 19:13:29 +00:00
Julian Smart
5e3566ffaf
Applied #9668 : made wxGetTimeZone() dynamic
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 19:12:31 +00:00
Julian Smart
5b806097fd
Applied #11106 : wxGenericDirCtrl can get into a state where it will no longer expand
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 17:04:44 +00:00
Julian Smart
c25bb73116
Applied #11005 : use purple instead of black as default wxHyperlinkCtrl::m_visitedColour
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 16:46:41 +00:00
Julian Smart
65b9ad2b55
Applied #10892 : Remove wxDocManager instance check
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 16:25:45 +00:00
Julian Smart
f37f49b652
Applied #10811 : Image in docview sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 16:04:06 +00:00
Julian Smart
abee7f4704
Applied #10829 : docview sample: enable canvas in --single mode
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 15:48:00 +00:00
Julian Smart
4a00d37c96
Applied #11236 : Event from thread not processed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 15:42:18 +00:00
Julian Smart
b37e592bd7
Applied #9789 : missing wxBORDER_THEME style in XRC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 15:36:43 +00:00
Julian Smart
b14cd77b2a
wxTextCtrl::LoadFile no longer sends a text event, to correct problems with spurious modification of documents.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 14:35:39 +00:00
Julian Smart
8410881294
Applied #10828 (Hourglass in wxDocManager::OnPreview)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:54:31 +00:00
Julian Smart
250ab35a3b
Applied: wxDocument: Adding an asterix to the title
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:49:01 +00:00
Julian Smart
e558f9533e
Applied better/Win98-proof method of getting edit window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:33:41 +00:00
Julian Smart
2d512c47df
Applied #10799 : using CallTipUseStyle() doesn't enable wxSTC_STYLE_CALLTIP
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:17:14 +00:00
Julian Smart
c50e0cc752
Applied part of #9115 (STC sample cleanup)
...
by troelsk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 13:08:48 +00:00
Julian Smart
4908591c7e
Applied #9127 : patch to remove blank under wxFrame with Hildon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 12:38:07 +00:00
Julian Smart
426d19f139
Applied patch #9058 (add Hildon 2.0 support)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 12:36:34 +00:00
Julian Smart
09981ba798
Applying patch #10784 : eliminate gauge flicker
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 10:18:15 +00:00
Julian Smart
d561e1a5fb
Applied patch #9510 : wxIAccessible access freed memory
...
by Cyball
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 10:15:20 +00:00
Stefan Csomor
e2bc58263e
avoiding double define warnings on osx
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 09:54:57 +00:00
Julian Smart
082e5b9856
Applied patch #11078 - DEVMODE creation in wxWindowsPrintNativeData::TransferFrom plus SetQuality to dpi
...
by Martin Perktold
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 09:54:25 +00:00
Stefan Csomor
def328714d
support PerformClick for NSControls, closes #11129
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-24 09:52:04 +00:00